Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-28 16:50:49
Last Modify:2020-03-17 23:00:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This is routine for system read from queue file

Proto:static ssize_t mqueue_read_file(struct file *filp, char __user *u_data, size_t count, loff_t *off)

Type:ssize_t

Parameter:

TypeParameterName
struct file *filp
char __user *u_data
size_tcount
loff_t *off
564  info = MQUEUE_I(file_inode(filp))
568  spin_lock( & lock)
569  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
577  spin_unlock( & lock)
578  buffer[ size of buffer - 1] = '\0'
580  ret = simple_read_from_buffer(u_data, count, off, buffer, strlen(buffer))
582  If ret <= 0 Then Return ret
585  i_atime = i_ctime = current_time(file_inode(filp))
586  Return ret