Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
samples/kfifo/inttype-example.c fifo_write() -> __kfifo_from_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 3967956338942676992 |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 3494201380284092416 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | from | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 0-1000000000 |
| LOCK2 | global &write_access |
drivers/iio/buffer/kfifo_buf.c iio_kfifo_write() -> __kfifo_from_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| PARAM_VALUE | 3 | copied | 7736892133956415488 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | from | $2 |
| DATA_SOURCE | 2 | len | $1 |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &kf->user_lock | ||
| TYPE_LOCK | (struct iio_kfifo)->user_lock |
samples/kfifo/bytestream-example.c fifo_write() -> __kfifo_from_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4433737730192162816 |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 4576057096436330496 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | from | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 0-1000000000 |
| LOCK2 | global &write_access |