函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_clock_register

函数原型:int posix_clock_register(struct posix_clock *clk, struct device *dev)

返回类型:int

参数:

类型参数名称
struct posix_clock *clk
struct device *dev
166  init_rwsem( & rwsem)
168  cdev_init( & cdev, & posix_clock_file_operations)
169  err等于cdev_device_add( & cdev, dev)
170  如果err
171  打印错误信息("%s unable to add device %d:%d\n", dev_name(dev), MAJOR( dev_t, creates the sysfs "dev" ), MINOR( dev_t, creates the sysfs "dev" ))
173  返回:err
175  owner等于owner
176  dev等于dev
178  返回:0