Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ask_get_css - find and get the css for (task, subsys)*@task: the target task*@subsys_id: the target subsystem ID* Find the css for the (@task, @subsys_id) combination, increment a* reference on and return it. This function is guaranteed to return a

Proto:static inline struct cgroup_subsys_state *task_get_css(struct task_struct *task, int subsys_id)

Type:struct cgroup_subsys_state

Parameter:

TypeParameterName
struct task_struct *task
intsubsys_id
508  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
509  When (true) cycle
510  css = ask_css - obtain css for (task, subsys)*@task: the target task*@subsys_id: the target subsystem ID* See task_css_check().
517  If Value is more likely to compile time(ss_tryget - try to obtain a reference on the specified css*@css: target css* Obtain a reference on @css unless it already has reached zero and is* being released. This function doesn't care whether @css is on or* offline) Then Break
519  cpu_relax()
521  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
522  Return css
Caller
NameDescribe
get_current_rdmacg