Function report |
Source Code:kernel\time\posix-clock.c |
Create Date:2022-07-28 10:48:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:posix_clock_register
Proto:int posix_clock_register(struct posix_clock *clk, struct device *dev)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If err Then |
171 | pr_err("%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 | Return err |
178 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |