Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit.c Create Date:2022-07-28 11:23:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:audit_get_stamp

Proto:static inline void audit_get_stamp(struct audit_context *ctx, struct timespec64 *t, unsigned int *serial)

Type:void

Parameter:

TypeParameterName
struct audit_context *ctx
struct timespec64 *t
unsigned int *serial
1725  If Not ctx || Not auditsc_get_stamp - get local copies of audit_context values*@ctx: audit_context for the task*@t: timespec64 to store time recorded in the audit_context*@serial: serial value that is recorded in the audit_context* Also sets the context as auditable. Then
1726  ktime_get_coarse_real_ts64(t)
1727  serial = audit_serial - compute a serial number for the audit record* Compute a serial number for the audit record. Audit records are* written to user-space as soon as they are generated, so a complete* audit record may be written in several pieces
Caller
NameDescribe
audit_log_startaudit_log_start - obtain an audit buffer*@ctx: audit_context (may be NULL)*@gfp_mask: type of allocation*@type: audit message type* Returns audit_buffer pointer on success or NULL on error