Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-clock.c Create Date:2022-07-28 10:48:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:posix_clock_open

Proto:static int posix_clock_open(struct inode *inode, struct file *fp)

Type:int

Parameter:

TypeParameterName
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  If zombie Then
117  err = -ENODEV
118  Go to out
120  If open Then err = open(clk, f_mode)
122  Else err = 0
125  If Not err Then
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  Return err