fd type from number

Loris Degioanni loris at draios.com
Tue Aug 19 11:38:24 EDT 2014


(resending making sure this is not part of another thread)

I'm looking for an efficient way to determine the type of an fd (file, 
socket...) given its number, from a kernel module.
The closest thing I found by looking at the kernel sources is 
sockfd_lookup(), which works but is limited to telling me if the fd is a 
socket or not.

Is there something else I can look at?

Thank you in advance,
Loris




More information about the Kernelnewbies mailing list