kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* struct sock change in kernel 2.6
@ 2010-12-22  6:17 lijin liu
  2010-12-22 16:31 ` Bharath H S
  0 siblings, 1 reply; 5+ messages in thread
From: lijin liu @ 2010-12-22  6:17 UTC (permalink / raw)
  To: kernelnewbies

Hello everyone!

I am trying to implement a simple tcp server in the kernel. I read the
ktcpvs's source code, but it works under kernel 2.4.

The  struct sock changed in kernel 2.6, I have two questions about the struct:

1. Is sk_wq field in 2.6 equals to sk_sleep field in 2.4?
2. How can I access the tcp accept queue in kernel 2.6? (In kernel
2.4, we could use tp_pinfo.af_tcp.accept_queue, but it was removed in
2.6)


PS: Should sk_receive_queue in the struct sock be used as
tp_pinfo.af_tcp.accept_queue?

Thanks a lot!

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

end of thread, other threads:[~2010-12-23  5:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22  6:17 struct sock change in kernel 2.6 lijin liu
2010-12-22 16:31 ` Bharath H S
2010-12-23  0:18   ` lijin liu
2010-12-23  5:16     ` Mulyadi Santosa
2010-12-23  5:19       ` lijin liu

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).