From: mindentropy@gmail.com (mindentropy)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Regarding netlink connector documentation code.
Date: Fri, 29 Jul 2011 02:09:09 +0530 [thread overview]
Message-ID: <201107290209.09592.mindentropy@gmail.com> (raw)
Hi,
In the example of the netlink connector code can somebody clarify if the
coding is not right?
The buf here
(http://lxr.linux.no/#linux+v3.0/Documentation/connector/ucon.c#L114) is 1024
which will be cn_msg. In the nlmsghdr the buf is
128(http://lxr.linux.no/#linux+v3.0/Documentation/connector/ucon.c#L65).
Should the nlmsghdr be atleast bigger than the cn_msg? I understand the
payload len being 0 and this being just an example with hardcoded values.
Thanks.
reply other threads:[~2011-07-28 20:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201107290209.09592.mindentropy@gmail.com \
--to=mindentropy@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.