函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sock_net

函数原型:static inline struct net *sock_net(const struct sock *sk)

返回类型:struct net

参数:

类型参数名称
const struct sock *sk
2474  返回:read_pnet( & sk_net)
调用者
名称描述
uevent_net_broadcast_tagged
uevent_net_rcv_skb
uevent_net_init
uevent_net_exit
audit_send_replyaudit_send_reply - send an audit reply message via netlink*@request_skb: skb of request we are replying to (used to target the reply)*@seq: sequence number*@type: audit message type*@done: done (last) flag*@multi: multi-part message flag*@payload: payload
audit_receive_msg
audit_list_rules_sendaudit_list_rules_send - list the audit rules*@request_skb: skb of request we are replying to (used to target the reply)*@seq: netlink audit message sequence (serial) number
selinux_socket_bindRange of port numbers used to automatically bind.Need to determine whether we should perform a name_bindpermission check between the socket and the port number.
selinux_socket_sock_rcv_skb
sk_get_wmem0
sk_get_rmem0
sk_dev_equal_l3scope a socket is bound to a device, check that the given device* index is either the same or that the socket is bound to an L3* master device and the given device index is also enslaved to* that L3 master
inet_request_mark
fastopen_queue_tune
ip_route_connect
ip_route_newports
inet_sk_listen_hashfn
tcp_slow_start_after_idle_check
tcp_win_from_space
keepalive_intvl_when
keepalive_time_when
keepalive_probes
tcp_fin_time
tcp_fastopen_get_ctxCaller needs to wrap with rcu_read_(un)lock()
tcp_notsent_lowat
tcp_listendropTCP listen path runs lockless.* We forced "struct sock" to be const qualified to make sure* we don't modify one of its field by mistake.* Here, we increment sk_drops which is an atomic_t, so we can safely* make sock writable again.
sock_diag_has_destroy_listeners