Home
last modified time | relevance | path

Searched full:netlink (Results 1 – 25 of 1453) sorted by relevance

12345678910>>...59

/kernel/linux/linux-5.10/include/net/
Dgenetlink.h6 #include <net/netlink.h>
12 * struct genl_multicast_group - generic netlink multicast group
26 * struct genl_family - generic netlink family
32 * @policy: netlink policy
78 * @snd_portid: netlink portid of sender
79 * @nlhdr: netlink message header
80 * @genlhdr: generic netlink message header
82 * @attrs: netlink attributes
118 * struct genl_small_ops - generic netlink operations (small version)
139 * struct genl_ops - generic netlink operations
[all …]
Dnetlink.h6 #include <linux/netlink.h>
11 * Netlink Messages and Attributes Interface (As Seen On TV)
34 * struct nlmsghdr netlink message header
37 * nlmsg_new() create a new netlink message
38 * nlmsg_put() add a netlink message to an skb
40 * nlmsg_end() finalize netlink message
44 * nlmsg_free() free a netlink message
64 * nlmsg_next(nlh, remaining) get next netlink message
68 * nlmsg_validate() validate netlink message incl. attrs
89 * struct nlattr netlink attribute header
[all …]
/kernel/linux/linux-6.6/Documentation/userspace-api/netlink/
Dintro.rst4 Introduction to Netlink
7 Netlink is often described as an ioctl() replacement.
12 To achieve this Netlink uses a minimal fixed-format metadata header
18 netlink as it is used today and dives into more "historical" uses
24 Netlink communication happens over sockets, a socket needs to be
36 A very simplified flow of a Netlink "call" will therefore look
48 Netlink also provides natural support for "dumping", i.e. communicating
70 it is opening a Netlink socket, with all headers provided by the user
71 (hence NETLINK, RAW). The last argument is the protocol within Netlink.
75 Classic vs Generic Netlink
[all …]
Dspecs.rst4 Netlink protocol specifications (in YAML)
7 Netlink protocol specifications are complete, machine readable descriptions of
8 Netlink protocols written in YAML. The goal of the specifications is to allow
9 separating Netlink parsing from user space logic and minimize the amount of
10 hand written Netlink code for each new family, command, attribute.
11 Netlink specs should be complete and not depend on any other spec
22 YAML specifications can be found under ``Documentation/netlink/specs/``
34 There are four schema levels for Netlink specs, from the simplest used
45 - ``genetlink-legacy`` - Generic Netlink catch all schema supporting quirks of
47 - ``netlink-raw`` - catch all schema supporting pre-Generic Netlink protocols
[all …]
Dnetlink-raw.rst4 Netlink specification support for raw Netlink families
7 This document describes the additional properties required by raw Netlink
8 families such as ``NETLINK_ROUTE`` which use the ``netlink-raw`` protocol
14 The netlink-raw schema extends the :doc:`genetlink-legacy <genetlink-legacy>`
16 multicast IDs used by raw netlink families. See :ref:`classic_netlink` for more
26 opening a netlink socket.
33 protocol: netlink-raw
Dintro-specs.rst4 Using Netlink protocol specifications
7 This document is a quick starting guide for using Netlink protocol
14 developing Netlink related code. The tool is implemented in Python
15 and can use a YAML specification to issue Netlink requests
16 to the kernel. Only Generic Netlink is supported.
26 YAML specs can be found under ``Documentation/netlink/specs/``.
30 $ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/ethtool.yaml \
45 Python-pretty-printed. This is because some Netlink types can't
49 The spec and Netlink internals are factored out as a standalone
67 /* Documentation/netlink/specs/fou.yaml */
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Diwpm_util.h48 #include <net/netlink.h>
100 * iwpm_get_nlmsg_request - Allocate and initialize netlink message request
101 * @nlmsg_seq: Sequence number of the netlink message
102 * @nl_client: The index of the netlink client
105 * Returns the newly allocated netlink request object if successful,
112 * iwpm_free_nlmsg_request - Deallocate netlink message request
113 * @kref: Holds reference of netlink message request
118 * iwpm_find_nlmsg_request - Find netlink message request in the request list
119 * @echo_seq: Sequence number of the netlink request to find
121 * Returns the found netlink message request,
[all …]
Diwpm_msg.c52 * iwpm_register_pid - Send a netlink query to userspace
55 * @nl_client: The index of the netlink client
87 err_str = "Unable to allocate netlink request"; in iwpm_register_pid()
117 skb = NULL; /* skb is freed in the netlink send-op handling */ in iwpm_register_pid()
134 * iwpm_add_mapping - Send a netlink add mapping request to
137 * @nl_client: The index of the netlink client
174 err_str = "Unable to allocate netlink request"; in iwpm_add_mapping()
206 skb = NULL; /* skb is freed in the netlink send-op handling */ in iwpm_add_mapping()
226 * @nl_client: The index of the netlink client
263 err_str = "Unable to allocate netlink request"; in iwpm_add_and_query_mapping()
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/core/
Diwpm_util.h47 #include <net/netlink.h>
97 * iwpm_get_nlmsg_request - Allocate and initialize netlink message request
98 * @nlmsg_seq: Sequence number of the netlink message
99 * @nl_client: The index of the netlink client
102 * Returns the newly allocated netlink request object if successful,
109 * iwpm_free_nlmsg_request - Deallocate netlink message request
110 * @kref: Holds reference of netlink message request
115 * iwpm_find_nlmsg_request - Find netlink message request in the request list
116 * @echo_seq: Sequence number of the netlink request to find
118 * Returns the found netlink message request,
[all …]
Diwpm_msg.c52 * iwpm_register_pid - Send a netlink query to userspace
55 * @nl_client: The index of the netlink client
83 err_str = "Unable to allocate netlink request"; in iwpm_register_pid()
113 skb = NULL; /* skb is freed in the netlink send-op handling */ in iwpm_register_pid()
130 * iwpm_add_mapping - Send a netlink add mapping request to
133 * @nl_client: The index of the netlink client
166 err_str = "Unable to allocate netlink request"; in iwpm_add_mapping()
198 skb = NULL; /* skb is freed in the netlink send-op handling */ in iwpm_add_mapping()
218 * @nl_client: The index of the netlink client
251 err_str = "Unable to allocate netlink request"; in iwpm_add_and_query_mapping()
[all …]
/kernel/linux/linux-5.10/include/rdma/
Drdma_netlink.h6 #include <linux/netlink.h>
27 /* Define this module as providing netlink services for NETLINK_RDMA, with
37 MODULE_ALIAS("rdma-netlink-subsys-" __stringify(_val))
40 * Register client in RDMA netlink.
48 * Remove a client from IB netlink.
55 * @skb: The netlink skb.
56 * @nlh: Pointer to put the header of the new netlink message.
59 * @client: Calling IB netlink client.
67 * @skb: The netlink skb.
68 * @nlh: Header of the netlink message to append the attribute to.
[all …]
/kernel/linux/linux-6.6/include/rdma/
Drdma_netlink.h6 #include <linux/netlink.h>
27 /* Define this module as providing netlink services for NETLINK_RDMA, with
37 MODULE_ALIAS("rdma-netlink-subsys-" __stringify(_val))
40 * Register client in RDMA netlink.
48 * Remove a client from IB netlink.
55 * @skb: The netlink skb.
56 * @nlh: Pointer to put the header of the new netlink message.
59 * @client: Calling IB netlink client.
67 * @skb: The netlink skb.
68 * @nlh: Header of the netlink message to append the attribute to.
[all …]
/kernel/linux/linux-6.6/include/net/
Dgenetlink.h6 #include <net/netlink.h>
12 * struct genl_multicast_group - generic netlink multicast group
27 * struct genl_family - generic netlink family
32 * @policy: netlink policy
97 * @snd_portid: netlink portid of sender
98 * @family: generic netlink family
99 * @nlhdr: netlink message header
100 * @genlhdr: generic netlink message header
101 * @attrs: netlink attributes
152 * struct genl_small_ops - generic netlink operations (small version)
[all …]
Dnetlink.h6 #include <linux/netlink.h>
11 * Netlink Messages and Attributes Interface (As Seen On TV)
34 * struct nlmsghdr netlink message header
37 * nlmsg_new() create a new netlink message
38 * nlmsg_put() add a netlink message to an skb
40 * nlmsg_end() finalize netlink message
44 * nlmsg_free() free a netlink message
64 * nlmsg_next(nlh, remaining) get next netlink message
68 * nlmsg_validate() validate netlink message incl. attrs
89 * struct nlattr netlink attribute header
[all …]
/kernel/linux/linux-6.6/tools/net/ynl/lib/
Dynl.py17 # Generic Netlink code which should really be in some library, but I can't quickly find one.
21 class Netlink: class
22 # Netlink socket
30 # Netlink message
84 return f"Netlink error: {os.strerror(-self.nl_msg.error)}\n{self.nl_msg}"
102 self.type = self._type & ~Netlink.NLA_TYPE_MASK
199 if self.nl_type == Netlink.NLMSG_ERROR:
203 elif self.nl_type == Netlink.NLMSG_DONE:
209 if self.nl_flags & Netlink.NLM_F_ACK_TLVS and extack_off:
213 if extack.type == Netlink.NLMSGERR_ATTR_MSG:
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/
Dnf_tables.h73 * enum nf_tables_msg_types - nf_tables netlink message types
131 * enum nft_list_attributes - nf_tables generic list netlink attributes
143 * enum nft_hook_attributes - nf_tables netfilter hook netlink attributes
171 * enum nft_table_attributes - nf_tables table netlink attributes
200 * enum nft_chain_attributes - nf_tables chain netlink attributes
233 * enum nft_rule_attributes - nf_tables rule netlink attributes
349 * enum nft_set_attributes - nf_tables set netlink attributes
401 * enum nft_set_elem_attributes - nf_tables set element netlink attributes
430 * enum nft_set_elem_list_attributes - nf_tables set element list netlink attributes
469 * enum nft_data_attributes - nf_tables data netlink attributes
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/
Dconnector.rst7 Kernel connector - new netlink based userspace <-> kernel space easy
11 netlink based network. One must register a callback and an identifier.
12 When the driver receives a special netlink message with the appropriate
25 netlink based networking for inter-process communication in a significantly
63 netlink group to the user which is equal to its id.idx.
102 Netlink itself is not a reliable protocol. That means that messages can
111 2.6.14 has a new netlink socket implementation, which by default does not
112 allow people to send data to netlink groups other than 1.
113 So, if you wish to use a netlink socket (for example using connector)
138 2.6.14 netlink code only allows to select a group which is less or equal to
[all …]
/kernel/linux/linux-6.6/Documentation/driver-api/
Dconnector.rst7 Kernel connector - new netlink based userspace <-> kernel space easy
11 netlink based network. One must register a callback and an identifier.
12 When the driver receives a special netlink message with the appropriate
25 netlink based networking for inter-process communication in a significantly
63 netlink group to the user which is equal to its id.idx.
102 Netlink itself is not a reliable protocol. That means that messages can
111 2.6.14 has a new netlink socket implementation, which by default does not
112 allow people to send data to netlink groups other than 1.
113 So, if you wish to use a netlink socket (for example using connector)
138 2.6.14 netlink code only allows to select a group which is less or equal to
[all …]
/kernel/linux/linux-6.6/include/uapi/linux/netfilter/
Dnf_tables.h73 * enum nf_tables_msg_types - nf_tables netlink message types
149 * enum nft_list_attributes - nf_tables generic list netlink attributes
161 * enum nft_hook_attributes - nf_tables netfilter hook netlink attributes
191 * enum nft_table_attributes - nf_tables table netlink attributes
197 * @NFTA_TABLE_OWNER: owner of this table through netlink portID (NLA_U32)
222 * enum nft_chain_attributes - nf_tables chain netlink attributes
255 * enum nft_rule_attributes - nf_tables rule netlink attributes
374 * enum nft_set_attributes - nf_tables set netlink attributes
430 * enum nft_set_elem_attributes - nf_tables set element netlink attributes
461 * enum nft_set_elem_list_attributes - nf_tables set element list netlink attributes
[all …]
/kernel/linux/linux-6.6/tools/lib/thermal/
Dthermal_nl.h6 #include <netlink/netlink.h>
7 #include <netlink/genl/genl.h>
8 #include <netlink/genl/mngt.h>
9 #include <netlink/genl/ctrl.h>
30 * Low level netlink
/kernel/linux/linux-5.10/net/netlabel/
Dnetlabel_user.h3 * NetLabel NETLINK Interface
5 * This file defines the NETLINK interface for the NetLabel system. The
23 #include <net/netlink.h>
27 /* NetLabel NETLINK helper functions */
30 * netlbl_netlink_auditinfo - Fetch the audit information from a NETLINK msg
40 /* NetLabel NETLINK I/O functions */
Dnetlabel_mgmt.c24 #include <net/netlink.h>
48 /* NetLabel Generic NETLINK CIPSOv4 family */
51 /* NetLabel Netlink attribute policy */
67 * @info: the Generic NETLINK info block
272 * @skb: the NETLINK buffer
413 * @skb: the NETLINK buffer
414 * @info: the Generic NETLINK info block
445 * @skb: the NETLINK buffer
446 * @info: the Generic NETLINK info block
506 * @skb: the NETLINK buffer
[all …]
/kernel/linux/linux-6.6/net/netlabel/
Dnetlabel_user.h3 * NetLabel NETLINK Interface
5 * This file defines the NETLINK interface for the NetLabel system. The
23 #include <net/netlink.h>
27 /* NetLabel NETLINK helper functions */
30 * netlbl_netlink_auditinfo - Fetch the audit information from a NETLINK msg
40 /* NetLabel NETLINK I/O functions */
Dnetlabel_mgmt.c24 #include <net/netlink.h>
48 /* NetLabel Generic NETLINK CIPSOv4 family */
51 /* NetLabel Netlink attribute policy */
67 * @info: the Generic NETLINK info block
272 * @skb: the NETLINK buffer
413 * @skb: the NETLINK buffer
414 * @info: the Generic NETLINK info block
445 * @skb: the NETLINK buffer
446 * @info: the Generic NETLINK info block
506 * @skb: the NETLINK buffer
[all …]
/kernel/linux/linux-6.6/fs/smb/client/
Dnetlink.c3 * Netlink routines for CIFS
11 #include "netlink.h"
60 * cifs_genl_init - Register generic netlink family
70 cifs_dbg(VFS, "%s: failed to register netlink family\n", in cifs_genl_init()
79 * cifs_genl_exit - Unregister generic netlink family
87 cifs_dbg(VFS, "%s: failed to unregister netlink family\n", in cifs_genl_exit()

12345678910>>...59