函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-27 18:26:02
Last Modify:2020-03-17 23:00:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This is routine for system read from queue file

函数原型:static ssize_t mqueue_read_file(struct file *filp, char __user *u_data, size_t count, loff_t *off)

返回类型:ssize_t

参数:

类型参数名称
struct file *filp
char __user *u_data
size_tcount
loff_t *off
564  info等于MQUEUE_I(file_inode(filp))
568  加自旋锁
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  自旋锁解锁
578  buffer[buffer的长度 - 1]等于'\0'
580  ret等于simple_read_from_buffer(u_data, count, off, buffer, strlen(buffer))
582  如果ret小于等于0则返回:ret
585  i_atime等于i_ctime等于current_time(file_inode(filp))
586  返回:ret