p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/source/include/rdma/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/source/include/rdma/rdma_netlink.h
#ifndef _RDMA_NETLINK_H
#define _RDMA_NETLINK_H


#include <linux/netlink.h>
#include <uapi/rdma/rdma_netlink.h>

struct rdma_nl_cbs {
	int (*doit)(struct sk_buff *skb, struct nlmsghdr *nlh);
	int (*dump)(struct sk_buff *skb, struct netlink_callback *nlcb);
	u8 flags;
};

enum rdma_nl_flags {
	/* Require CAP_NET_ADMIN */
	RDMA_NL_ADMIN_PERM	= 1 << 0,
};

/* Define this module as providing netlink services for NETLINK_RDMA, with
 * index _index.  Since the client indexes were setup in a uapi header as an
 * enum and we do no want to change that, the user must supply the expanded
 * constant as well and the compiler checks they are the same.
 */
#define MODULE_ALIAS_RDMA_NETLINK(_index, _val)                                \
	static inline void __chk_##_index(void)                                \
	{                                                                      \
		BUILD_BUG_ON(_index != _val);                                  \
	}                                                                      \
	MODULE_ALIAS("rdma-netlink-subsys-" __stringify(_val))

/**
 * Register client in RDMA netlink.
 * @index: Index of the added client
 * @cb_table: A table for op->callback
 */
void rdma_nl_register(unsigned int index,
		      const struct rdma_nl_cbs cb_table[]);

/**
 * Remove a client from IB netlink.
 * @index: Index of the removed IB client.
 */
void rdma_nl_unregister(unsigned int index);

/**
 * Put a new message in a supplied skb.
 * @skb: The netlink skb.
 * @nlh: Pointer to put the header of the new netlink message.
 * @seq: The message sequence number.
 * @len: The requested message length to allocate.
 * @client: Calling IB netlink client.
 * @op: message content op.
 * Returns the allocated buffer on success and NULL on failure.
 */
void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq,
		   int len, int client, int op, int flags);
/**
 * Put a new attribute in a supplied skb.
 * @skb: The netlink skb.
 * @nlh: Header of the netlink message to append the attribute to.
 * @len: The length of the attribute data.
 * @data: The attribute data to put.
 * @type: The attribute type.
 * Returns the 0 and a negative error code on failure.
 */
int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh,
		  int len, void *data, int type);

/**
 * Send the supplied skb to a specific userspace PID.
 * @skb: The netlink skb
 * @pid: Userspace netlink process ID
 * Returns 0 on success or a negative error code.
 */
int rdma_nl_unicast(struct sk_buff *skb, u32 pid);

/**
 * Send, with wait/1 retry, the supplied skb to a specific userspace PID.
 * @skb: The netlink skb
 * @pid: Userspace netlink process ID
 * Returns 0 on success or a negative error code.
 */
int rdma_nl_unicast_wait(struct sk_buff *skb, __u32 pid);

/**
 * Send the supplied skb to a netlink group.
 * @skb: The netlink skb
 * @group: Netlink group ID
 * @flags: allocation flags
 * Returns 0 on success or a negative error code.
 */
int rdma_nl_multicast(struct sk_buff *skb, unsigned int group, gfp_t flags);

/**
 * Check if there are any listeners to the netlink group
 * @group: the netlink group ID
 * Returns true on success or false if no listeners.
 */
bool rdma_nl_chk_listeners(unsigned int group);
#endif /* _RDMA_NETLINK_H */
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
ib.h
3.309 KB
November 06 2023 09:15:52
0 / 0
0644
ib_addr.h
8.909 KB
November 06 2023 09:15:52
0 / 0
0644
ib_cache.h
5.621 KB
November 06 2023 09:15:52
0 / 0
0644
ib_cm.h
19.315 KB
November 06 2023 09:15:52
0 / 0
0644
ib_fmr_pool.h
3.358 KB
November 06 2023 09:15:52
0 / 0
0644
ib_hdrs.h
8.615 KB
November 06 2023 09:15:52
0 / 0
0644
ib_mad.h
29.507 KB
November 06 2023 09:15:52
0 / 0
0644
ib_marshall.h
2.04 KB
November 06 2023 09:15:52
0 / 0
0644
ib_pack.h
8.989 KB
November 06 2023 09:15:52
0 / 0
0644
ib_pma.h
5.448 KB
November 06 2023 09:15:52
0 / 0
0644
ib_sa.h
21.335 KB
November 06 2023 09:15:52
0 / 0
0644
ib_smi.h
5.501 KB
November 06 2023 09:15:52
0 / 0
0644
ib_umem.h
3.41 KB
November 06 2023 09:15:52
0 / 0
0644
ib_umem_odp.h
5.2 KB
November 06 2023 09:15:52
0 / 0
0644
ib_verbs.h
123.057 KB
November 06 2023 09:15:52
0 / 0
0644
iw_cm.h
8.587 KB
November 06 2023 09:15:52
0 / 0
0644
iw_portmap.h
7.508 KB
November 06 2023 09:15:52
0 / 0
0644
mr_pool.h
0.932 KB
November 06 2023 09:15:52
0 / 0
0644
opa_addr.h
4.436 KB
November 06 2023 09:15:52
0 / 0
0644
opa_port_info.h
14.773 KB
November 06 2023 09:15:52
0 / 0
0644
opa_smi.h
4.313 KB
November 06 2023 09:15:52
0 / 0
0644
opa_vnic.h
4.035 KB
November 06 2023 09:15:52
0 / 0
0644
rdma_cm.h
15.191 KB
November 06 2023 09:15:52
0 / 0
0644
rdma_cm_ib.h
2.059 KB
November 06 2023 09:15:52
0 / 0
0644
rdma_netlink.h
3.195 KB
November 06 2023 09:15:52
0 / 0
0644
rdma_vt.h
16.99 KB
November 06 2023 09:15:52
0 / 0
0644
rdmavt_cq.h
3.402 KB
November 06 2023 09:15:52
0 / 0
0644
rdmavt_mr.h
5.985 KB
November 06 2023 09:15:52
0 / 0
0644
rdmavt_qp.h
21.617 KB
November 06 2023 09:15:52
0 / 0
0644
restrack.h
4.655 KB
November 06 2023 09:15:52
0 / 0
0644
rw.h
2.813 KB
November 06 2023 09:15:52
0 / 0
0644
uverbs_ioctl.h
29.495 KB
November 06 2023 09:15:52
0 / 0
0644
uverbs_named_ioctl.h
5.95 KB
November 06 2023 09:15:52
0 / 0
0644
uverbs_std_types.h
6.146 KB
November 06 2023 09:15:52
0 / 0
0644
uverbs_types.h
6.411 KB
November 06 2023 09:15:52
0 / 0
0644