Re: sk->dead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

> My understanding is that the "sk->dead" field is doing
> nothing besides ensuring that the callback functions
> don't get called .. 

No, it means that user closed this socket and
it is scheduled to die, when protocol will allow.

Callback functions are called not depending on this flag.
(Though such checks are really present, they are mostly meaningless.)
Callback functions verify conditions, when they are allowed
to do something themselves, by means known to them. Particularly,
default callback implementaions in 2.2 really rely on sk->dead.

> setting       sk->dead = 1 

You should not change this flag. It can be changed only by close routine.

Alexey
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux