函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmpressure_unregister_event() - Unbind eventfd from vmpressure*@memcg: memcg handle*@eventfd: eventfd context that was used to link vmpressure with the @cg* This function does internal manipulations to detach the @eventfd from* the vmpressure

函数原型:void vmpressure_unregister_event(struct mem_cgroup *memcg, struct eventfd_ctx *eventfd)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
struct eventfd_ctx *eventfd
428  vmpr等于Some nice accessors for the vmpressure.
431  mutex_lock( & Have to grab the lock on events traversal or modifications. )
433  如果efd不等于eventfd则继续下一循环
435  删除链表项
436  释放内存
437  退出
439  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.