函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\libfs.c Create Date:2022-07-29 10:41:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:simple_transaction_get

函数原型:char *simple_transaction_get(struct file *file, const char __user *buf, size_t size)

返回类型:char

参数:

类型参数名称
struct file *file
const char __user *buf
size_tsize
758  DEFINE_SPINLOCK(simple_transaction_lock)
760  如果size大于SIMPLE_TRANSACTION_LIMIT减1则返回:错误号
763  ar等于get_zeroed_page(GFP_KERNEL)
764  如果非ar则返回:错误号
767  加自旋锁
770  如果 needed for tty driver, and maybe others
771  自旋锁解锁
772  free_page((unsignedlong)ar)
773  返回:错误号
776  needed for tty driver, and maybe others 等于ar
778  自旋锁解锁
780  如果copy_from_user(data, buf, size)则返回:错误号
783  返回:data
调用者
名称描述
smk_user_accesssmk_user_access - handle access check transaction*@file: file pointer*@buf: data from user space*@count: bytes sent*@ppos: where to start - must be 0