Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/file.c alloc_fd() -> __set_open_fd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 0-4294967294 |
| PARAM_VALUE | 1 | fdt | 4096-ptr_max |
| CAPPED_DATA | 0 | fd | 1 |
| PARAM_COMPARE | 0 | fd | < $1->max_fds |
| BIT_INFO | 2 | set | 0x0,0x80000 |
| NOSPEC | 0 | fd | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | fd | 0-s32max[c] |
| USER_DATA | 2 | set | 0-1[c] |
| UNITS | 0 | fd | unit_long |
| LOCK2 | &files->file_lock | ||
| TYPE_LOCK | (struct files_struct)->file_lock |
fs/file.c do_dup2() -> __set_open_fd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 0-4294967294 |
| PARAM_VALUE | 1 | fdt | 4096-ptr_max |
| PARAM_VALUE | 1 | fdt->open_fds | 4096-ptr_max |
| CAPPED_DATA | 0 | fd | 1 |
| BIT_INFO | 2 | set | 0x0,0x80000 |
| NOSPEC | 0 | fd | |
| NOSPEC | 0 | fd | |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | fd | 0-s32max[c] |
| USER_DATA | 2 | set | 0-1[c] |
| UNITS | 0 | fd | unit_long |
| LOCK2 | &files->file_lock | ||
| TYPE_LOCK | (struct files_struct)->file_lock |