Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-28 19:22:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smack_sk_free_security - Free a socket blob*@sk: the socket* Clears the blob pointer

Proto:static void smack_sk_free_security(struct sock *sk)

Type:void

Parameter:

TypeParameterName
struct sock *sk
2281  If sk_family == PF_INET6 Then
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  If socket initialized on != sk Then Continue
2286  smk_can_reuse = 1
2287  Break
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  kfree(sk_security)