Linux Kernel
3.7.1
|
#include <linux/device.h>
#include <linux/export.h>
#include <linux/file.h>
#include <linux/posix-clock.h>
#include <linux/slab.h>
#include <linux/syscalls.h>
#include <linux/uaccess.h>
Go to the source code of this file.
Data Structures | |
struct | posix_clock_desc |
Variables | |
struct k_clock | clock_posix_dynamic |
EXPORT_SYMBOL_GPL | ( | posix_clock_register | ) |
EXPORT_SYMBOL_GPL | ( | posix_clock_unregister | ) |
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.
Definition at line 437 of file posix-clock.c.