Linux Kernel
3.7.1
|
#include <linux/cdev.h>
#include <linux/fs.h>
#include <linux/poll.h>
#include <linux/posix-timers.h>
#include <linux/rwsem.h>
Go to the source code of this file.
Data Structures | |
struct | posix_clock_operations |
struct | posix_clock |
Functions | |
int | posix_clock_register (struct posix_clock *clk, dev_t devid) |
void | posix_clock_unregister (struct posix_clock *clk) |
int posix_clock_register | ( | struct posix_clock * | clk, |
dev_t | devid | ||
) |
posix_clock_register() - register a new clock : Pointer to the clock. Caller must provide 'ops' and 'release' : Allocated device id
A clock driver calls this function to register itself with the clock device subsystem. If 'clk' points to dynamically allocated memory, then the caller must provide a 'release' function to free that memory.
Returns zero on success, non-zero otherwise.
Definition at line 209 of file posix-clock.c.
void posix_clock_unregister | ( | struct posix_clock * | clk | ) |
posix_clock_unregister() - unregister a clock : Clock instance previously registered via posix_clock_register()
A clock driver calls this function to remove itself from the clock device subsystem. The posix_clock itself will remain (in an inactive state) until its reference count drops to zero, at which point it will be deallocated with its 'release' method.
Definition at line 232 of file posix-clock.c.