diff options
author | Wang Long <w@laoqinren.net> | 2020-07-20 15:24:12 +0800 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2020-07-23 14:06:06 -0600 |
commit | 2ed1761fab136ec3aefa3641a3048dd8ba09a067 (patch) | |
tree | 52218a2807b35608b771bf3f3c339ae2ec4f3817 /Documentation/driver-api/connector.rst | |
parent | f6655c75610ebf17461f6667c034a892c99be292 (diff) | |
download | linux-2ed1761fab136ec3aefa3641a3048dd8ba09a067.tar.gz linux-2ed1761fab136ec3aefa3641a3048dd8ba09a067.tar.bz2 linux-2ed1761fab136ec3aefa3641a3048dd8ba09a067.zip |
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 <w@laoqinren.net>
Link: https://lore.kernel.org/r/1595229852-114071-1-git-send-email-w@laoqinren.net
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/driver-api/connector.rst')
-rw-r--r-- | Documentation/driver-api/connector.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/driver-api/connector.rst b/Documentation/driver-api/connector.rst index c100c7482289..23d068191fb1 100644 --- a/Documentation/driver-api/connector.rst +++ b/Documentation/driver-api/connector.rst @@ -26,7 +26,7 @@ netlink based networking for inter-process communication in a significantly easier way:: int cn_add_callback(struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct netlink_skb_parms *)); - void cn_netlink_send_multi(struct cn_msg *msg, u16 len, u32 portid, u32 __group, int gfp_mask); + void cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 __group, int gfp_mask); void cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, int gfp_mask); struct cb_id @@ -48,7 +48,8 @@ be dereferenced to `struct cn_msg *`:: __u32 seq; __u32 ack; - __u32 len; /* Length of the following data */ + __u16 len; /* Length of the following data */ + __u16 flags; __u8 data[0]; }; |