Mapping socket to task

richard -rw- weinberger richard.weinberger at gmail.com
Fri Oct 12 15:08:48 EDT 2012


On Fri, Oct 12, 2012 at 6:48 AM, Lal <learner.kernel at gmail.com> wrote:
> How to get task_struct of a socket owner process? i.e. how to get
> task_struct* from sock*

Sockets can be shared.
E.g. after fork().
So, there is no owner...

-- 
Thanks,
//richard



More information about the Kernelnewbies mailing list