| 函数逻辑报告 | 
| Source Code: fs\pipe.c | Create Date:2022-07-29 10:34:20 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Allocate a new array of pipe buffers and copy the info over. Returns the* pipe size if successful, or return -ERROR on error.
函数原型:static long pipe_set_size(struct pipe_inode_info *pipe, unsigned long arg)
返回类型:long
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct pipe_inode_info * | pipe | |
| unsigned long | arg | 
| 1174 | ret等于0 | 
| 1176 | size等于Currently we rely on the pipe array holding a power-of-2 number* of pages. Returns 0 on error. | 
| 1189 | 如果nr_slots大于ring_size且size大于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且非操作权限检查则返回:负EPERM | 
| 1193 | user_bufs等于account_pipe_buffers(user, ring_size, nr_slots) | 
| 1200 | 转到:out_revert_acct | 
| 1212 | n等于pipe_occupancy - Return number of slots used in the pipe*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer | 
| 1215 | 转到:out_revert_acct | 
| 1220 | 如果此条件成立可能性小(为编译器优化)(!bufs)则 | 
| 1222 | 转到:out_revert_acct | 
| 1229 | 如果n大于0则 | 
| 1235 | 否则 | 
| 1246 | tail等于0 | 
| 1248 | 释放内存 | 
| 1254 | wake_up_interruptible_all( & wait) | 
| 1257 | out_revert_acct : | 
| 1258 | account_pipe_buffers(user, nr_slots, ring_size) | 
| 1259 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| pipe_fcntl | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |