Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_firmware.c Create Date:2022-07-28 06:28:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_fw_misc_read

Proto:static ssize_t test_fw_misc_read(struct file *f, char __user *buf, size_t size, loff_t *offset)

Type:ssize_t

Parameter:

TypeParameterName
struct file *f
char __user *buf
size_tsize
loff_t *offset
111  rc = 0
113  mutex_lock( & test_fw_mutex)
114  If test_firmware Then rc = simple_read_from_buffer - copy data from the buffer to user space*@to: the user space buffer to read to*@count: the maximum number of bytes to read*@ppos: the current position in the buffer*@from: the buffer to read from*@available: the size of the
118  mutex_unlock( & test_fw_mutex)
119  Return rc