Linux Kernel - Socket file descriptor close location
Posted
by NTek
on Stack Overflow
See other posts from Stack Overflow
or by NTek
Published on 2010-04-25T23:46:26Z
Indexed on
2010/04/25
23:53 UTC
Read the original article
Hit count: 224
Where in the linux kernel does the closing of a socket's file descriptor occur? I know for a file, the file's file descriptor is closed in fs/open.cs function sys_close(). However, for a socket file descriptor, is this the same location or somewhere else?
Also, do sockets utilize the file.c alloc_fd to allocate the file descriptor or do they utilize some other function?
© Stack Overflow or respective owner