Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ss_get_many - obtain references on the specified css*@css: target css*@n: number of references to get* The caller must already have a reference.

Proto:static inline void css_get_many(struct cgroup_subsys_state *css, unsigned int n)

Type:void

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
unsigned intn
333  If Not (flags & CSS_NO_REF) Then percpu_ref_get_many - increment a percpu refcount*@ref: percpu_ref to get*@nr: number of references to get* Analogous to atomic_long_add().* This function is safe to call as long as @ref is between init and exit.
Caller
NameDescribe
try_charge
mem_cgroup_migratemem_cgroup_migrate - charge a page's replacement*@oldpage: currently circulating page*@newpage: replacement page* Charge @newpage as a replacement page for @oldpage. @oldpage will* be uncharged upon free.