函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-clock.c Create Date:2022-07-27 11:48:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:posix_clock_open

函数原型:static int posix_clock_open(struct inode *inode, struct file *fp)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *fp
111  clk等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(i_cdev, structposix_clock, cdev)
114  lock for reading
116  如果zombie
117  err等于负ENODEV
118  转到:out
120  如果openerr等于open(clk, f_mode)
122  否则err等于0
125  如果非err
126  get_device - atomically increment the reference count for the device.
127  needed for tty driver, and maybe others 等于clk
129  out :
130  lease a read lock
131  返回:err