Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- fs/notify/fanotify/fanotify_user.c, line 915
- kernel/fork.c, line 2348
- kernel/pid.c, line 674
- net/core/scm.c, line 486
- net/core/sock.c, line 1941
Smatch caller information:
kernel/fork.c copy_process() -> pidfd_prepare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pid | 4096-ptr_max |
| PARAM_VALUE | 0 | pid->count.refs.counter | 1 |
| PARAM_VALUE | 0 | pid->wait_pidfd.head.prev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | flags | 4096,4224,4608,4736 |
| PARAM_VALUE | 2 | ret_file | 8017695998096220160 |
| PARAM_VALUE | 2 | *ret_file | 0 |
| DATA_SOURCE | 0 | pid | $0 [m] |
| FUZZY_MAX | 1 | flags | 4096 |
| BIT_INFO | 1 | flags | 0x1000,0x1280 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/pid.c pidfd_create() -> pidfd_prepare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pid | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0-4094 |
| PARAM_VALUE | 2 | ret_file | 5455719517783400448 |
| DATA_SOURCE | 0 | pid | $0 |
| DATA_SOURCE | 1 | flags | $1 |
| BIT_INFO | 1 | flags | 0x0,0x880 |
| USER_DATA | 1 | flags | 0-4094 |
net/core/scm.c scm_pidfd_recv() -> pidfd_prepare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pid | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 4096 |
| PARAM_VALUE | 2 | ret_file | 1406411901948919808 |
| PARAM_VALUE | 2 | *ret_file | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &u->iolock | ||
| TYPE_LOCK | (struct unix_sock)->iolock |
net/core/sock.c sk_getsockopt() -> pidfd_prepare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pid | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0,4096 |
| PARAM_VALUE | 2 | ret_file | 1293138380031373312 |
| PARAM_VALUE | 2 | *ret_file | 0 |
| DATA_SOURCE | 0 | pid | r get_pid |
| FUZZY_MAX | 1 | flags | 4096 |
| BIT_INFO | 1 | flags | 0x0,0x1000 |
| HARD_MAX | 1 | flags | 4096 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/notify/fanotify/fanotify_user.c copy_event_to_user() -> pidfd_prepare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 4096,4224 |
| PARAM_VALUE | 2 | ret_file | 5404447024597331968 |
| PARAM_VALUE | 2 | *ret_file | 0 |
| FUZZY_MAX | 1 | flags | 4096 |
| BIT_INFO | 1 | flags | 0x1000,0x1080 |