Can't get owner information from struct sock: sk_peer_pid is always NULL

前端 未结 0 855
攒了一身酷
攒了一身酷 2021-01-31 22:56

I\'m trying to find the PID from struct sock, so I used the following code:

struct task_struct *get_task_from_sock(struct sock *sk)
{
    struct task         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题