Skip to content

Commit 2ed1761

Browse files
Wang LongJonathan Corbet
authored andcommitted
Documentation: driver-api: update kernel connector
This patch changes: 1) Fix typo in kernel connector documentation. s/cn_netlink_send_multi/cn_netlink_send_mult/ 2) update definition of struct cn_msg Signed-off-by: Wang Long <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent f6655c7 commit 2ed1761

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/driver-api/connector.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ netlink based networking for inter-process communication in a significantly
2626
easier way::
2727

2828
int cn_add_callback(struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct netlink_skb_parms *));
29-
void cn_netlink_send_multi(struct cn_msg *msg, u16 len, u32 portid, u32 __group, int gfp_mask);
29+
void cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 __group, int gfp_mask);
3030
void cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, int gfp_mask);
3131

3232
struct cb_id
@@ -48,7 +48,8 @@ be dereferenced to `struct cn_msg *`::
4848
__u32 seq;
4949
__u32 ack;
5050

51-
__u32 len; /* Length of the following data */
51+
__u16 len; /* Length of the following data */
52+
__u16 flags;
5253
__u8 data[0];
5354
};
5455

0 commit comments

Comments
 (0)