Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-9728 osd: use GFP_HIGHUSER for non-local IO
[fs/lustre-release.git]
/
lnet
/
include
/
lnet
/
api.h
diff --git
a/lnet/include/lnet/api.h
b/lnet/include/lnet/api.h
index
337b986
..
84c6bd0
100644
(file)
--- a/
lnet/include/lnet/api.h
+++ b/
lnet/include/lnet/api.h
@@
-75,10
+75,10
@@
int LNetNIFini(void);
*
* \see LNetMEAttach
* @{ */
*
* \see LNetMEAttach
* @{ */
-int LNetGetId(unsigned int index,
lnet_process_id_t
*id);
+int LNetGetId(unsigned int index,
struct lnet_process_id
*id);
int LNetDist(lnet_nid_t nid, lnet_nid_t *srcnid, __u32 *order);
int LNetDist(lnet_nid_t nid, lnet_nid_t *srcnid, __u32 *order);
-void LNetSnprintHandle(char *str, int str_len, lnet_handle_any_t handle);
lnet_nid_t LNetPrimaryNID(lnet_nid_t nid);
lnet_nid_t LNetPrimaryNID(lnet_nid_t nid);
+bool LNetIsPeerLocal(lnet_nid_t nid);
/** @} lnet_addr */
/** @} lnet_addr */
@@
-96,22
+96,22
@@
lnet_nid_t LNetPrimaryNID(lnet_nid_t nid);
* and LNetMEInsert(), and removed from its list by LNetMEUnlink().
* @{ */
int LNetMEAttach(unsigned int portal,
* and LNetMEInsert(), and removed from its list by LNetMEUnlink().
* @{ */
int LNetMEAttach(unsigned int portal,
-
lnet_process_id_t
match_id_in,
+
struct lnet_process_id
match_id_in,
__u64 match_bits_in,
__u64 ignore_bits_in,
__u64 match_bits_in,
__u64 ignore_bits_in,
-
lnet_unlink_t
unlink_in,
-
lnet_ins_pos_t
pos_in,
-
lnet_handle_me_t
*handle_out);
+
enum lnet_unlink
unlink_in,
+
enum lnet_ins_pos
pos_in,
+
struct lnet_handle_me
*handle_out);
-int LNetMEInsert(
lnet_handle_me_t
current_in,
-
lnet_process_id_t
match_id_in,
+int LNetMEInsert(
struct lnet_handle_me
current_in,
+
struct lnet_process_id
match_id_in,
__u64 match_bits_in,
__u64 ignore_bits_in,
__u64 match_bits_in,
__u64 ignore_bits_in,
-
lnet_unlink_t
unlink_in,
-
lnet_ins_pos_t
position_in,
-
lnet_handle_me_t
*handle_out);
+
enum lnet_unlink
unlink_in,
+
enum lnet_ins_pos
position_in,
+
struct lnet_handle_me
*handle_out);
-int LNetMEUnlink(
lnet_handle_me_t
current_in);
+int LNetMEUnlink(
struct lnet_handle_me
current_in);
/** @} lnet_me */
/** \defgroup lnet_md Memory descriptors
/** @} lnet_me */
/** \defgroup lnet_md Memory descriptors
@@
-126,16
+126,16
@@
int LNetMEUnlink(lnet_handle_me_t current_in);
* and LNetMDBind(); one operation to unlink and release the resources
* associated with a MD: LNetMDUnlink().
* @{ */
* and LNetMDBind(); one operation to unlink and release the resources
* associated with a MD: LNetMDUnlink().
* @{ */
-int LNetMDAttach(
lnet_handle_me_t
current_in,
-
lnet_md_t
md_in,
-
lnet_unlink_t
unlink_in,
-
lnet_handle_md_t *
handle_out);
+int LNetMDAttach(
struct lnet_handle_me
current_in,
+
struct lnet_md
md_in,
+
enum lnet_unlink
unlink_in,
+
struct lnet_handle_md *md_
handle_out);
-int LNetMDBind(
lnet_md_t
md_in,
-
lnet_unlink_t
unlink_in,
-
lnet_handle_md_t *
handle_out);
+int LNetMDBind(
struct lnet_md
md_in,
+
enum lnet_unlink
unlink_in,
+
struct lnet_handle_md *md_
handle_out);
-int LNetMDUnlink(
lnet_handle_md_t
md_in);
+int LNetMDUnlink(
struct lnet_handle_md
md_in);
/** @} lnet_md */
/** \defgroup lnet_eq Events and event queues
/** @} lnet_md */
/** \defgroup lnet_eq Events and event queues
@@
-148,9
+148,9
@@
int LNetMDUnlink(lnet_handle_md_t md_in);
* associated with it. If an event handler exists, it will be run for each
* event that is deposited into the EQ.
*
* associated with it. If an event handler exists, it will be run for each
* event that is deposited into the EQ.
*
- * In addition to the
lnet_handle_eq_t
, the LNet API defines two types
- * associated with events: The ::lnet_event_kind
_t
defines the kinds of events
- * that can be stored in an EQ. The
lnet_event_
t defines a structure that
+ * In addition to the
struct lnet_handle_eq
, the LNet API defines two types
+ * associated with events: The ::lnet_event_kind defines the kinds of events
+ * that can be stored in an EQ. The
struct lnet_even
t defines a structure that
* holds the information about with an event.
*
* There are five functions for dealing with EQs: LNetEQAlloc() is used to
* holds the information about with an event.
*
* There are five functions for dealing with EQs: LNetEQAlloc() is used to
@@
-162,21
+162,20
@@
int LNetMDUnlink(lnet_handle_md_t md_in);
* @{ */
int LNetEQAlloc(unsigned int count_in,
lnet_eq_handler_t handler,
* @{ */
int LNetEQAlloc(unsigned int count_in,
lnet_eq_handler_t handler,
-
lnet_handle_eq_t
*handle_out);
+
struct lnet_handle_eq
*handle_out);
-int LNetEQFree(
lnet_handle_eq_t
eventq_in);
+int LNetEQFree(
struct lnet_handle_eq
eventq_in);
-int LNetEQGet(
lnet_handle_eq_t
eventq_in,
-
lnet_event_t
*event_out);
+int LNetEQGet(
struct lnet_handle_eq
eventq_in,
+
struct lnet_event
*event_out);
+int LNetEQWait(struct lnet_handle_eq eventq_in,
+ struct lnet_event *event_out);
-int LNetEQWait(lnet_handle_eq_t eventq_in,
- lnet_event_t *event_out);
-
-int LNetEQPoll(lnet_handle_eq_t *eventqs_in,
+int LNetEQPoll(struct lnet_handle_eq *eventqs_in,
int neq_in,
signed long timeout,
int neq_in,
signed long timeout,
-
lnet_event_t
*event_out,
+
struct lnet_event
*event_out,
int *which_eq_out);
/** @} lnet_eq */
int *which_eq_out);
/** @} lnet_eq */
@@
-186,17
+185,17
@@
int LNetEQPoll(lnet_handle_eq_t *eventqs_in,
* and LNetGet().
* @{ */
int LNetPut(lnet_nid_t self,
* and LNetGet().
* @{ */
int LNetPut(lnet_nid_t self,
-
lnet_handle_md_t
md_in,
-
lnet_ack_req_t
ack_req_in,
-
lnet_process_id_t
target_in,
+
struct lnet_handle_md
md_in,
+
enum lnet_ack_req
ack_req_in,
+
struct lnet_process_id
target_in,
unsigned int portal_in,
__u64 match_bits_in,
unsigned int offset_in,
__u64 hdr_data_in);
int LNetGet(lnet_nid_t self,
unsigned int portal_in,
__u64 match_bits_in,
unsigned int offset_in,
__u64 hdr_data_in);
int LNetGet(lnet_nid_t self,
-
lnet_handle_md_t
md_in,
-
lnet_process_id_t
target_in,
+
struct lnet_handle_md
md_in,
+
struct lnet_process_id
target_in,
unsigned int portal_in,
__u64 match_bits_in,
unsigned int offset_in);
unsigned int portal_in,
__u64 match_bits_in,
unsigned int offset_in);
@@
-210,7
+209,7
@@
int LNetGet(lnet_nid_t self,
int LNetSetLazyPortal(int portal);
int LNetClearLazyPortal(int portal);
int LNetCtl(unsigned int cmd, void *arg);
int LNetSetLazyPortal(int portal);
int LNetClearLazyPortal(int portal);
int LNetCtl(unsigned int cmd, void *arg);
-void LNetDebugPeer(
lnet_process_id_t
id);
+void LNetDebugPeer(
struct lnet_process_id
id);
/** @} lnet_misc */
/** @} lnet_misc */