函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:auditd_set - Set/Reset the auditd connection state*@pid: auditd PID*@portid: auditd netlink portid*@net: auditd network namespace pointer* Description:* This function will obtain and drop network namespace references as* necessary

函数原型:static int auditd_set(struct pid *pid, unsigned int portid, struct net *net)

返回类型:int

参数:

类型参数名称
struct pid *pid
unsigned intportid
struct net *net
497  如果非pid或非net则返回:负EINVAL
500  ac_new等于分配内存并置零
501  如果非ac_new则返回:负ENOMEM
503  pid等于get_pid(pid)
504  portid等于portid
505  net等于get_net(net)
507  spin_lock_irqsave( & auditd_conn_lock, flags)
508  ac_old等于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(struct auditd_connection - kernel/auditd connection state*@pid: auditd PID*@portid: netlink portid*@net: the associated network namespace*@rcu: RCU head* Description:* This struct is RCU protected; you must either hold the RCU lock for reading, lockdep_is_held( & auditd_conn_lock))
510  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(struct auditd_connection - kernel/auditd connection state*@pid: auditd PID*@portid: netlink portid*@net: the associated network namespace*@rcu: RCU head* Description:* This struct is RCU protected; you must either hold the RCU lock for reading, ac_new)
511  spin_unlock_irqrestore( & auditd_conn_lock, flags)
513  如果ac_oldall_rcu() - Queue an RCU callback for invocation after a grace period
516  返回:0
调用者
名称描述
audit_receive_msg