Function Name:zalloc_cpumask_var_node
Function:static inline bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node)
Return Type:static inline bool
Parameter:
| Type | Parameter Name | Remarks |
|---|---|---|
| cpumask_var_t * | mask | |
| gfp_t | flags | |
| int | node |
| 690 | Returning true |
Function Name:srcu_init_notifier_head
Function:void srcu_init_notifier_head(struct srcu_notifier_head *nh)
Return Type:void
Parameter:
| Type | Parameter Name | Remarks |
|---|---|---|
| struct srcu_notifier_head * | nh | Pointer to head of the srcu notifier chain |
Function description: Initialize an SRCU notifier head
| 525 | mutex_init |
| 526 | If init_srcu_struct < 0 then BUG |
本文介绍Linux内核中的两个实用函数:zalloc_cpumask_var_node用于按节点分配并初始化CPU掩码变量;srcu_init_notifier_head则用于初始化SRCU通知器头部,确保多处理器环境下的一致性。
1252

被折叠的 条评论
为什么被折叠?




Function description: