linux-stable/Documentation/netlink
Jakub Kicinski ba980f8dff netlink: specs: support generating code for genl socket priv
The family struct is auto-generated for new families, support
use of the sock_priv_* mechanism added in commit a731132424
("genetlink: introduce per-sock family private storage").

For example if the family wants to use struct sk_buff as its
private struct (unrealistic but just for illustration), it would
add to its spec:

  kernel-family:
    headers: [ "linux/skbuff.h" ]
    sock-priv: struct sk_buff

ynl-gen-c will declare the appropriate priv size and hook
in function prototypes to be implemented by the family.

Link: https://lore.kernel.org/r/20240308190319.2523704-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-11 15:15:42 -07:00
..
specs netdev: add queue stat for alloc failures 2024-03-07 21:13:26 -08:00
genetlink-c.yaml netlink: specs: support generating code for genl socket priv 2024-03-11 15:15:42 -07:00
genetlink-legacy.yaml netlink: specs: support generating code for genl socket priv 2024-03-11 15:15:42 -07:00
genetlink.yaml netlink: specs: support generating code for genl socket priv 2024-03-11 15:15:42 -07:00
netlink-raw.yaml netlink: specs: support unterminated-ok 2024-03-11 13:09:15 -07:00