kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* fd type from number
@ 2014-08-19 15:38 Loris Degioanni
  2014-08-19 15:54 ` Daniel Baluta
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Loris Degioanni @ 2014-08-19 15:38 UTC (permalink / raw)
  To: kernelnewbies

(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

^ permalink raw reply	[flat|nested] 11+ messages in thread
* TCP/UDP
@ 2014-08-18 16:25 Nick Krause
  2014-08-18 17:31 ` TCP/UDP Denis Kirjanov
  0 siblings, 1 reply; 11+ messages in thread
From: Nick Krause @ 2014-08-18 16:25 UTC (permalink / raw)
  To: kernelnewbies

Hey Guys,
After Searching the kernel Docs there is very little information on
this for new developers. I want to know more about how
the kernel code is written to handle TCP/UDP as even with Google and
kernel programming books it's not good enough to
learn how to write code for this particular subsystem at a high level.
Cheers Nick

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-08-23  5:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-19 15:38 fd type from number Loris Degioanni
2014-08-19 15:54 ` Daniel Baluta
2014-08-19 16:02 ` Valdis.Kletnieks at vt.edu
2014-08-19 16:34   ` Loris Degioanni
2014-08-20  9:33     ` Rohan Puri
2014-08-22 19:03       ` Loris Degioanni
2014-08-23  5:26         ` Rohan Puri
2014-08-19 16:10 ` Greg KH
2014-08-19 16:36   ` Loris Degioanni
  -- strict thread matches above, loose matches on Subject: below --
2014-08-18 16:25 TCP/UDP Nick Krause
2014-08-18 17:31 ` TCP/UDP Denis Kirjanov
2014-08-18 17:33   ` TCP/UDP Nick Krause
2014-08-18 19:43     ` TCP/UDP Nick Krause
2014-08-19  0:46       ` fd type from number Loris Degioanni
2014-08-19 12:04         ` Greg Freemyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).