Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\mm.h Create Date:2022-07-28 05:40:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:memalloc_use_memcg - Starts the remote memcg charging scope.*@memcg: memcg to charge.* This function marks the beginning of the remote memcg charging scope. All the* __GFP_ACCOUNT allocations till the end of the scope will be charged to the* given memcg.

Proto:static inline void memalloc_use_memcg(struct mem_cgroup *memcg)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
323  WARN_ON_ONCE(active_memcg)
324  active_memcg = memcg
Caller
NameDescribe
alloc_page_buffersCreate the appropriate buffers when given a page for data area and* the size of each buffer
inotify_handle_event
fanotify_alloc_event