函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Note:* We use sk->sk_wq_raw, from contexts knowing this* pointer is not NULL and cannot disappear/change.

函数原型:static inline void sk_set_bit(int nr, struct sock *sk)

返回类型:void

参数:

类型参数名称
intnr
struct sock *sk
2195  如果nr恒等于Historically, SOCKWQ_ASYNC_NOSPACE & SOCKWQ_ASYNC_WAITDATA were located* in sock->flags, but moved into sk->sk_wq->flags to be RCU protected.* Eventually all flags will be in sk->sk_wq->flags.nr恒等于SOCKWQ_ASYNC_WAITDATA的值且非sock_flag(sk, async() active )则返回
2199  set_bit - Atomically set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* This is a relaxed atomic operation (no implied memory barriers).* Note that @nr may be almost arbitrarily large; this function is not