函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\sock.h Create Date:2022-07-27 07:06:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sock_graft

函数原型:static inline void sock_graft(struct sock *sk, struct socket *parent)

返回类型:void

参数:

类型参数名称
struct sock *sk
struct socket *parent
1832  WARN_ON(sk)
1833  write_lock_bh( & sk_callback_lock)
1834  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(sk_wq, & wq)
1835  sk等于sk
1836  sk_set_socket(sk, parent)
1837  sk_uid等于i_uid
1838  security_sock_graft(sk, parent)
1839  write_unlock_bh( & sk_callback_lock)