Re: sk->dead

From: kuznet@ms2.inr.ac.ru
Date: Sat Jul 15 2000 - 11:57:13 EDT

  • Next message: Russell King: "Re: Oops in 2.4.0-test4 (its still this one introduced in"

    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

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 15:46:46 EDT