函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__sk_dst_set

函数原型:static inline void __sk_dst_set(struct sock *sk, struct dst_entry *dst)

返回类型:void

参数:

类型参数名称
struct sock *sk
struct dst_entry *dst
1910  sk_tx_queue_clear(sk)
1911  sk_dst_pending_confirm等于0
1912  old_dst等于cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(sk_dst_cache, lockdep_sock_is_held(sk))
1914  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_dst_cache, dst)
1915  dst_release(old_dst)
调用者
名称描述
__sk_dst_reset