forked from Minki/linux
net: use SYSCALL_DEFINEx for sys_recv
Make sys_recv a first class citizen by using the SYSCALL_DEFINEx macro. Besides being cleaner this will also generate meta data for the system call so tracing tools like ftrace or LTTng can resolve this system call. Signed-off-by: Jan Glauber <jan.glauber@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c3206e6fc0
commit
b7c0ddf5f2
@ -1880,8 +1880,8 @@ out:
|
|||||||
* Receive a datagram from a socket.
|
* Receive a datagram from a socket.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
asmlinkage long sys_recv(int fd, void __user *ubuf, size_t size,
|
SYSCALL_DEFINE4(recv, int, fd, void __user *, ubuf, size_t, size,
|
||||||
unsigned int flags)
|
unsigned int, flags)
|
||||||
{
|
{
|
||||||
return sys_recvfrom(fd, ubuf, size, flags, NULL, NULL);
|
return sys_recvfrom(fd, ubuf, size, flags, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user