函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pipe_ioctl

函数原型:static long pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)

返回类型:long

参数:

类型参数名称
struct file *filp
unsigned intcmd
unsigned longarg
613  pipe等于 needed for tty driver, and maybe others
617  :cmd恒等于FIONREAD
618  __pipe_lock(pipe)
619  count等于0
620  head等于head
621  tail等于tail
622  mask等于ring_size减1
624 tail不等于head循环
625  count加等于len
626  tail自加
628  __pipe_unlock(pipe)
630  返回:put_user - Write a simple value into user space(count, (int__user * )arg)
631  默认
632  返回:负No ioctl command