Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_read_lock_sched() - mark the beginning of a RCU-sched critical section* This is equivalent of rcu_read_lock(), but disables preemption.* Read-side critical sections can also be introduced by anything else

Proto:static inline void rcu_read_lock_sched(void)

Type:void

Parameter:Nothing

723  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
724  __acquire(RCU_SCHED)
725  rcu_lock_acquire( & rcu_sched_lock_map)
726  RCU_LOCKDEP_WARN(!_is_watching - see if RCU thinks that the current CPU is not idle* Return true if RCU is watching the running CPU, which means that this* CPU can safely enter RCU read-side critical sections, "rcu_read_lock_sched() used illegally while idle")
Caller
NameDescribe
module_find_bug
generic_bug_clear_once
sched_dl_global_validate
sched_dl_do_global
rcutorture_one_extendDo one extension of an RCU read-side critical section using the* current reader state in readstate (set to zero for initial entry* to extended critical section), set the new state as specified by* newstate (set to zero for final exit from extended
p_start
trace_inject_entry
fpid_start
__fd_installInstall a file pointer in the fd array.* The VFS is full of places where we drop the files lock between* setting the open_fds bitmap and installing the file in the file* array. At any such point, we are vulnerable to a dup2() race