There is a varaible sk_rmem_alloc in struct sock declared in linux/inlcude/net/sock.h. Till the present analysis this variable shows the commited buffer size for the recieve queue(I am in need of remaining buffer size for the socket at the application level,so i need this).Can anyone tell which is function at kernel level which is responsible for updating it everytime during sending packets process at application level.I guess it is skb_set_owner_r() defined in sock.h.

would appreciate the comments for above