netlink kernel and user space communications compl
2016-08-23
2 0 0
no vote
Other
Earn points
User space to send a message to the kernel, "this message is from eric's space", the message length 33 bytes because printf ("message sendto kernel are:% s, len:% d \ n", (char *) NLMSG_DATA (message ), message-> nlmsg_len); message-> nlmsg_len = NLMSG_SPACE (strlen (data)); the NLMSG - SPACE, four-byte aligned, so the message length is 36, plus the message header length is 16, len 52 . The kernel netlink messages received print and return the user space of a own message, long 39, a four-byte alignment for 40, 56 plus the message header.
c
例子
用户
完整
内核
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment