Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:puset_node_allowed - Can we allocate on a memory node?*@node: is this an allowed node?*@gfp_mask: memory allocation flags* If we're in interrupt, yes, we can always allocate. If @node is set in* current's mems_allowed, yes

Proto:bool __cpuset_node_allowed(int node, gfp_t gfp_mask)

Type:bool

Parameter:

TypeParameterName
intnode
gfp_tgfp_mask
3421  If in_interrupt() Then Return true
3423  If No static inline type checking - see Subtlety (1) above. (node, mems_allowed) Then Return true
3429  If Value for the false possibility is greater at compile time(tsk_is_oom_victim(current process)) Then Return true
3431  If gfp_mask & __GFP_HARDWALL Then Return false
3434  If flags & Getting shut down Then Return true
3438  spin_lock_irqsave( & callback_lock, flags)
3440  _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
3441  cs = arest_hardwall_ancestor() - Returns the nearest mem_exclusive or* mem_hardwall ancestor to the specified cpuset. Call holding* callback_lock. If no ancestor is mem_exclusive or mem_hardwall* (an unusual configuration), then returns the root cpuset.
3442  allowed = No static inline type checking - see Subtlety (1) above. (node, mems_allowed)
3443  _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()
3445  spin_unlock_irqrestore( & callback_lock, flags)
3446  Return allowed