In the Linux kernel we have a sk_buff structure in the network stack from which we get the inode and from this inode we want to get the pid of the process that created the inode. There is a pid field in the sk_buff but it is always set to 0.
Is there any way from inside the kernel to know the pid from the inode?