函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_sk_free_security - Free a socket blob*@sk: the socket* Clears the blob pointer

函数原型:static void smack_sk_free_security(struct sock *sk)

返回类型:void

参数:

类型参数名称
struct sock *sk
2281  如果sk_family恒等于PF_INET6
2282  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
2284  如果socket initialized on 不等于sk则继续下一循环
2286  smk_can_reuse等于1
2287  退出
2289  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
2292  释放内存