Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\percpu-rwsem.c Create Date:2022-07-28 09:48:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:percpu_down_write

Proto:void percpu_down_write(struct percpu_rw_semaphore *sem)

Type:void

Parameter:

TypeParameterName
struct percpu_rw_semaphore *sem
146  rcu_sync_enter( & rss)
148  lock for writing
154  WRITE_ONCE(readers_block, 1)
156  smp_mb()
165  The caller is responsible for locking around rcuwait_wait_event(),* such that writes to @task are properly serialized.( & blocked writer , Return true if the modular sum of the sem->read_count per-CPU variable is* zero. If this sum is zero, then it is stable due to the fact that if any* newly arriving readers increment a given counter, they will immediately* decrement that same counter.)
Caller
NameDescribe
torture_percpu_rwsem_down_write
cgroup_procs_write_start
cgroup_update_dfl_cssesgroup_update_dfl_csses - update css assoc of a subtree in default hierarchy*@cgrp: root of the subtree to update csses for*@cgrp's control masks have changed and its subtree's css associations* need to be updated accordingly
cgroup_attach_task_allgroup_attach_task_all - attach task 'tsk' to all cgroups of task 'from'*@from: attach to all cgroups of a given task*@tsk: the task to be attached
cgroup_transfer_tasksgroup_trasnsfer_tasks - move tasks from one cgroup to another*@to: cgroup to which the tasks will be moved*@from: cgroup in which the tasks currently reside* Locking rules between cgroup_post_fork() and the migration path* guarantee that, if a task is
rebuild_sched_domains
cpuset_can_attachCalled by cgroups to determine if a cpuset is usable; cpuset_mutex held
cpuset_cancel_attach
cpuset_attach
cpuset_write_u64
cpuset_write_s64
cpuset_write_resmaskCommon handling for a write to a "cpus" or "mems" file.
sched_partition_write
cpuset_css_online
cpuset_css_offlineIf the cpuset being removed has its flag 'sched_load_balance'* enabled, then simulate turning sched_load_balance off, which* will call rebuild_sched_domains_locked(). That is not needed* in the default hierarchy where only changes in partition
cpuset_bind
hotplug_update_tasks_legacy
cpuset_hotplug_update_taskspuset_hotplug_update_tasks - update tasks in a cpuset for hotunplug*@cs: cpuset in interest*@tmp: the tmpmasks structure pointer* Compare @cs's cpu and mem masks against top_cpuset and if some have gone* offline, update @cs accordingly
cpuset_hotplug_workfnCPU / memory hotplug is handled asynchronously.
register_for_each_vma
locks_start