Re: can anyone tell me the differences between "struct sock" and "struct socket" that are data structures of network protocol stack ?

2009-03-29 Thread Vishal Thanki
I think "struct socket" is a socket which operates a transport layer. It allows the flexibility to add your own protocol stack (where you can defined your own protocol specific handlers  like bind, connect,  send, revc etc..). "struct sock" is operating at network layer. It holds all the connec

can anyone tell me the differences between "struct sock" and "struct socket" that are data structures of network protocol stack ?

2009-03-29 Thread Irfan Ahmed
can anyone tell me the differences between "struct sock" and "struct socket" that are data structures of network protocol stack ? Get your new Email address! Grab the Email name you've always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/

Projects on Linux core networking

2009-03-29 Thread Onkar
Hi All, I am interested implementing some core networking projects ( such as Network stack optimization (such as FreeBSD netperf , IPv6 etc ) . kindly guide me on this. regards, Onkar

/proc/stat iowait?, io_schedule()

2009-03-29 Thread David Neiss
So, having kernel code which does: set_current_state(TASK_INTERRUPTIBLE); schedule(); causes blocking, as expected, and /proc/stat shows increasing idle task time and non increasing io wait time. Fine. Changing schedule() to io_schedule(), time now seems to be split between idle task and io_wait

Why no trylock for read/write_bh?

2009-03-29 Thread Kristian Evensen
Hello, I am working on a kernel module and need read/write locks of the bh-kind due to the module needing to process input from a proc-variable. To avoid deadlocks, I need to use trylock to determine if somebody is holding the lock or not. Unfortunately, I cannot find a trylock_bh for the rea

Re: [ext2/ext3] Re-allocation of blocks for an inode

2009-03-29 Thread Greg Freemyer
On Sat, Mar 28, 2009 at 2:27 PM, Sandeep K Sinha wrote: > On Sat, Mar 28, 2009 at 3:18 AM, Greg Freemyer > wrote: >> Sandeep, >> >> I've looked at the code and made comments.  I suspect the issue is an >> extraneous call >> >>       dst_bhptr = sb_bread(ohsm_sb, dest_bh.b_blocknr); >> >> If that