Lines Matching +full:message +full:- +full:based
1 .. SPDX-License-Identifier: GPL-2.0
7 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
17 - socket();
18 - bind();
19 - send();
20 - recv();
25 netlink based networking for inter-process communication in a significantly
39 connector.h header for in-kernel usage. `void (*callback) (void *)` is a
40 callback function which will be called when a message with above idx.val
59 .. kernel-doc:: include/linux/connector.h
71 msg->seq and msg->ack are used to determine message genealogy. When
72 someone sends a message, they use a locally unique sequence and random
74 nlmsghdr->nlmsg_seq too.
76 The sequence number is incremented with each message sent.
78 If you expect a reply to the message, then the sequence number in the
79 received message MUST be the same as in the original message, and the
82 If we receive a message and its sequence number is not equal to one we
83 are expecting, then it is a new message. If we receive a message and
86 message + 1, then it is a new message.
94 driver (it also registers itself with id={-1, -1}).
105 cn_msg [main connector's message header] contains u32 seq and u32 ack
123 if (bind(s, (struct sockaddr *)&l_local, sizeof(struct sockaddr_nl)) == -1) {
126 return -1;
142 Additional 0xf numbers are allocated to be used by non-in-kernel users.