Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-cgroup.c Create Date:2022-07-28 17:39:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blkcg_policy_enabled

Proto:static bool blkcg_policy_enabled(struct request_queue *q, const struct blkcg_policy *pol)

Type:bool

Parameter:

TypeParameterName
struct request_queue *q
const struct blkcg_policy *pol
63  Return pol && Determine whether a bit is set(plid, blkcg_pols)
Caller
NameDescribe
blkg_alloclkg_alloc - allocate a blkg*@blkcg: block cgroup the new blkg is associated with*@q: request_queue the new blkg is associated with*@gfp_mask: allocation mask to use* Allocate a new blkg assocating @blkcg and @q.
blkcg_print_blkgslkcg_print_blkgs - helper for printing per-blkg data*@sf: seq_file to print to*@blkcg: blkcg of interest*@prfill: fill function to print out a blkg*@pol: policy in question*@data: data to be passed to @prfill*@show_total: to print out sum of prfill return
blkg_lookup_checkPerforms queue bypass and policy enabled checks then looks up blkg.
blkcg_activate_policylkcg_activate_policy - activate a blkcg policy on a request_queue*@q: request_queue of interest*@pol: blkcg policy to activate* Activate @pol on @q
blkcg_deactivate_policylkcg_deactivate_policy - deactivate a blkcg policy on a request_queue*@q: request_queue of interest*@pol: blkcg policy to deactivate* Deactivate @pol on @q. Follows the same synchronization rules as* blkcg_activate_policy().