Re: sock structure.

From: kuznet@ms2.inr.ac.ru
Date: Thu Dec 28 2000 - 13:28:35 EST


Hello!

> such sock_put function. All the other functions r there. Can you give some
> idea for 2.2.x type of kernel?

This is good question.

In 2.2 each TCP socket finishes its life in net/ipv4/timer.c.
Each TCP_DONE_TIME this timer checks that socket is closed,
and as soon as timer finds it closed, destroy_sock() is called.

It is still not the end. Until socket buffers are drained,
destroy is retried each SOCK_DESTROY_TIME and finally dies in:

destroy_sock()
        kill_sk_now()
                sk_free(sk)

Alexey

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org



This archive was generated by hypermail 2b29 : Sun Dec 31 2000 - 21:00:18 EST