Function report | 
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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| int | node | |
| gfp_t | gfp_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) | 
| 3445 | spin_unlock_irqrestore( & callback_lock, flags) | 
| 3446 | Return allowed | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |