函数逻辑报告 |
Source Code:fs\pipe.c |
Create Date:2022-07-29 10:34:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:alloc_pipe_info
函数原型:struct pipe_inode_info *alloc_pipe_info(void)
返回类型:struct pipe_inode_info
参数:无
767 | user等于get_current_user - Get the current task's user_struct* Get the user record of the current task, pinning it so that it can't go* away.() |
769 | max_size等于READ_ONCE(The max size that a non-root user is allowed to grow the pipe. Can* be set by root in /proc/sys/fs/pipe-max-size) |
772 | 如果(pipe == NULL)则转到:out_free_uid |
775 | 如果pipe_bufs乘PAGE_SIZE大于max_size且非操作权限检查则pipe_bufs等于max_size右移PAGE_SHIFT determines the page size 位 |
778 | user_bufs等于account_pipe_buffers(user, 0, pipe_bufs) |
781 | user_bufs等于account_pipe_buffers(user, pipe_bufs, 1) |
782 | pipe_bufs等于1 |
791 | 如果bufs则 |
792 | init_waitqueue_head( & wait) |
797 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & mutex) |
798 | 返回:pipe |
801 | out_revert_acct : |
802 | account_pipe_buffers(user, pipe_bufs, 0) |
803 | 释放内存 |
804 | out_free_uid : |
806 | 返回:NULL |
名称 | 描述 |
---|---|
get_pipe_inode | |
fifo_open | |
splice_direct_to_actor | splice_direct_to_actor - splices data directly between two non-pipes*@in: file to splice from*@sd: actor information on where to splice to*@actor: handles the data splicing* Description:* This is a special case helper to splice directly between two |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |