suse man page for sockfd_lookup

Query: sockfd_lookup

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SOCKFD_LOOKUP(9)						 Linux Networking						  SOCKFD_LOOKUP(9)

NAME
sockfd_lookup - Go from a file number to its socket slot
SYNOPSIS
struct socket * sockfd_lookup(int fd, int * err);
ARGUMENTS
fd file handle err pointer to an error code return
DESCRIPTION
The file handle passed in is locked and the socket it is bound too is returned. If an error occurs the err pointer is overwritten with a negative errno code and NULL is returned. The function checks for both invalid handles and passing a handle which is not a socket. On a success the socket object pointer is returned.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 SOCKFD_LOOKUP(9)
Related Man Pages
curlinfo_activesocket(3) - mojave
explain_socket(3) - debian
__skb_recv_datagram(9) - suse
socket_accept(3) - php
sctp_peeloff(3) - hpux
Similar Topics in the Unix Linux Community
Grant unprivileged user rights to see the output of echo|format but not modify disks
Update kernel Linux without reboot?!
SOCKS proxy & PAM configuration exposure
Tar Command
Docker learning Phase-I