Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\ioprio.c Create Date:2022-07-28 17:21:43
Last Modify:2020-03-17 23:21:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_task_ioprio

Proto:int set_task_ioprio(struct task_struct *task, int ioprio)

Type:int

Parameter:

TypeParameterName
struct task_struct *task
intioprio
40  cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
42  _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
43  tcred = __task_cred - Access a task's objective credentials*@task: The task to query* Access the objective credentials of a task. The caller must hold the RCU* readlock.* The result of this function should not be passed directly to get_cred();(task)
44  If Not uid_eq( real UID of the task , effective UID of the task ) && Not uid_eq( real UID of the task , real UID of the task ) && Not Check operation authority Then
46  _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()
47  Return -EPERM
49  _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()
51  err = security_task_setioprio(task, ioprio)
52  If err Then Return err
55  ioc = get_task_io_context - get io_context of a task*@task: task of interest*@gfp_flags: allocation flags, used if allocation is necessary*@node: allocation node, used if allocation is necessary* Return io_context of @task
56  If ioc Then
57  ioprio = ioprio
58  put_io_context - put a reference of io_context*@ioc: io_context to put* Decrement reference count of @ioc and release it if the count reaches* zero.
61  Return err
Caller
NameDescribe
SYSCALL_DEFINE3