函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmpressure_init() - Initialize vmpressure control structure*@vmpr: Structure to be initialized* This function should be called on every allocated vmpressure structure* before any usage.

函数原型:void vmpressure_init(struct vmpressure *vmpr)

返回类型:void

参数:

类型参数名称
struct vmpressure *vmpr
451  spin_lock_init( & The lock is used to keep the scanned/reclaimed above in sync. )
452  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & Have to grab the lock on events traversal or modifications. )
453  初始化链表头
454  INIT_WORK( & work, vmpressure_work_fn)