author | Arnie Reynoso <ariner@ti.com> | |
Wed, 16 Oct 2013 17:11:11 +0000 (10:11 -0700) | ||
committer | Chris Ring <cring@ti.com> | |
Thu, 17 Oct 2013 17:07:20 +0000 (10:07 -0700) | ||
commit | 4f5eb4af57bded42905fdbeb9d97c222ddc0e8a7 | |
tree | dcbceaaf01aac5b92c79c5793702a9c1d593275e | tree | snapshot (tar.xz tar.gz zip) |
parent | 5379160823b0b46cfd9a69ea8d3e17439578bebf | commit | diff |
Linux: Update user AF_RPMSG define for 3.9 kernel
IPC's Linux user space support contains a copy of a few
kernel-defined structs and definitions. This is necessary
because the kernel headers are not include-able by user space.
One of these values is the socket address family used for
rpmsg-based sockets - AF_RPMSG. This definition is always
'one more' than the last address family defined by the kernel's
socket.h.
Prior to Linux 3.9, this was aways 40. In Linux 3.9, a new
address family was introduced (AF_VSOCK), and as a result we
needed to set AF_RPMSG to 41. To enable this, the user space
header reflects on the kernel version and appropriately assigns
the value of AF_RPMSG.
Note that in addition to adding 3.9+ support, this commit also
cleans up some dead code.
IPC's Linux user space support contains a copy of a few
kernel-defined structs and definitions. This is necessary
because the kernel headers are not include-able by user space.
One of these values is the socket address family used for
rpmsg-based sockets - AF_RPMSG. This definition is always
'one more' than the last address family defined by the kernel's
socket.h.
Prior to Linux 3.9, this was aways 40. In Linux 3.9, a new
address family was introduced (AF_VSOCK), and as a result we
needed to set AF_RPMSG to 41. To enable this, the user space
header reflects on the kernel version and appropriately assigns
the value of AF_RPMSG.
Note that in addition to adding 3.9+ support, this commit also
cleans up some dead code.
linux/include/net/rpmsg.h | diff | blob | history |