Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/iio/industrialio-event.c iio_event_chrdev_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 16-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 4938006828279402496 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 16-1000000000 |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &ev_int->read_lock | ||
| TYPE_LOCK | (struct iio_event_interface)->read_lock |
drivers/platform/surface/surface_aggregator_cdev.c ssam_cdev_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 6556444301641302016 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 0-1000000000 |
| LOCK2 | &cdev->lock | ||
| LOCK2 | &client->read_lock | ||
| TYPE_LOCK | (struct ssam_cdev)->lock | ||
| TYPE_LOCK | (struct ssam_cdev_client)->read_lock |
sound/soc/intel/avs/debugfs.c strace_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 1480790534834941952 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 0-1000000000 |
samples/kfifo/inttype-example.c fifo_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 3967956338942676992 |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 5281222465293737984 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 0-1000000000 |
| LOCK2 | global &read_access |
drivers/hid/hid-debug.c hid_debug_events_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 2122371118800871424 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 0-1000000000 |
| LOCK2 | &list->read_mutex | ||
| TYPE_LOCK | (struct hid_debug_list)->read_mutex |
drivers/hid/hid-sensor-custom.c hid_sensor_custom_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 16-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 8975542854198800384 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 16-1000000000 |
| UNITS | 2 | len | unit_byte |
drivers/platform/surface/surface_dtx.c surface_dtx_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 7336445579984384000 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 0-1000000000 |
| LOCK2 | &client->read_lock | ||
| LOCK2 | &ddev->lock | ||
| TYPE_LOCK | (struct sdtx_client)->read_lock | ||
| TYPE_LOCK | (struct sdtx_device)->lock |
drivers/counter/counter-chrdev.c counter_chrdev_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 24-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 5699882863580794880 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 24-1000000000 |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &counter->events_out_lock | ||
| TYPE_LOCK | (struct counter_device)->events_out_lock |
drivers/media/rc/lirc_dev.c lirc_read_mode2() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 4-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 5256999698841698304 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 4-1000000000 |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &rcdev->lock | ||
| TYPE_LOCK | (struct rc_dev)->lock |
drivers/media/rc/lirc_dev.c lirc_read_scancode() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 24-1000000000 |
| PARAM_VALUE | 3 | copied | 8891110540998541312 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 24-1000000000 |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &rcdev->lock | ||
| TYPE_LOCK | (struct rc_dev)->lock |
drivers/iio/buffer/kfifo_buf.c iio_read_kfifo() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 9110001917975764992 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $2 |
| DATA_SOURCE | 2 | len | $1 |
| USER_DATA | 2 | len | 0-1000000000 |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &kf->user_lock | ||
| TYPE_LOCK | (struct iio_kfifo)->user_lock |
samples/kfifo/bytestream-example.c fifo_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4433737730192162816 |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 7179230777810980864 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 0-1000000000 |
| LOCK2 | global &read_access |
drivers/rapidio/devices/rio_mport_cdev.c mport_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 72 |
| PARAM_VALUE | 3 | copied | 6548589439813341184 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 [m] |
| UNITS | 2 | len | unit_byte |
drivers/media/radio/radio-si476x.c si476x_radio_fops_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-2147479552 |
| PARAM_VALUE | 3 | copied | 107328755097059328 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| CAPPED_DATA | 2 | len | 1 |
| DATA_SOURCE | 1 | to | $1 |
| USER_DATA | 2 | len | 0-1000000000[c] |
| UNITS | 2 | len | unit_byte |
drivers/gnss/core.c gnss_read() -> __kfifo_to_user()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fifo | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | copied | 3722757608581898240 |
| BUF_SIZE | 0 | fifo | 24 |
| BUF_SIZE | 3 | copied | 4 |
| DATA_SOURCE | 1 | to | $1 |
| DATA_SOURCE | 2 | len | $2 |
| USER_DATA | 2 | len | 0-1000000000 |
| LOCK2 | &gdev->read_mutex | ||
| TYPE_LOCK | (struct gnss_device)->read_mutex |