Defined in 2 files as a function:
- include/linux/mempolicy.h, line 96 (as a function)
- include/linux/mempolicy.h, line 208 (as a function)
Referenced in 3 files:
Smatch caller information:
fs/proc/task_mmu.c hold_task_mempolicy() -> mpol_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pol | 1-u64max |
| BUF_SIZE | 0 | pol | (-1),288 |
| BUF_SIZE | 0 | pol | (-1),288 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &m->lock | ||
| LOCK2 | &task->alloc_lock | ||
| HALF_LOCKED2 | &priv->lock_ctx.mm->mmap_lock | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct seq_file)->lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |
mm/shmem.c shmem_get_sbmpol() -> mpol_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pol | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &sbinfo->stat_lock | ||
| TYPE_LOCK | (struct shmem_sb_info)->stat_lock |
mm/mempolicy.c do_get_mempolicy() -> mpol_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pol | 1-u64max |
| BUF_SIZE | 0 | pol | (-1),288 |
| BUF_SIZE | 0 | pol | (-1),288 |
| NOCHECK_CALL | |||
| USER_DATA | 0 | pol->flags | 0,24,8192-57368[c] |
| USER_DATA | 0 | pol->home_node | 0-1023 |
| USER_DATA | 0 | pol->mode | 2-3,5-u16max |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/mempolicy.c do_mbind() -> mpol_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pol | 1-u64max |
| BUF_SIZE | 0 | pol | (-1),288 |
| BUF_SIZE | 0 | pol | (-1),288 |
| DATA_SOURCE | 0 | pol | r get_task_policy |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pol->mode | |
| HALF_LOCKED2 | &mm->mmap_lock |
mm/mempolicy.c mpol_shared_policy_lookup() -> mpol_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &sp->lock | ||
| TYPE_LOCK | (struct shared_policy)->lock |