Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
posix_clock_operations Struct Reference

#include <posix-clock.h>

Data Fields

struct moduleowner
 
int(* clock_adjtime )(struct posix_clock *pc, struct timex *tx)
 
int(* clock_gettime )(struct posix_clock *pc, struct timespec *ts)
 
int(* clock_getres )(struct posix_clock *pc, struct timespec *ts)
 
int(* clock_settime )(struct posix_clock *pc, const struct timespec *ts)
 
int(* timer_create )(struct posix_clock *pc, struct k_itimer *kit)
 
int(* timer_delete )(struct posix_clock *pc, struct k_itimer *kit)
 
void(* timer_gettime )(struct posix_clock *pc, struct k_itimer *kit, struct itimerspec *tsp)
 
int(* timer_settime )(struct posix_clock *pc, struct k_itimer *kit, int flags, struct itimerspec *tsp, struct itimerspec *old)
 
int(* fasync )(struct posix_clock *pc, int fd, struct file *file, int on)
 
long(* ioctl )(struct posix_clock *pc, unsigned int cmd, unsigned long arg)
 
int(* mmap )(struct posix_clock *pc, struct vm_area_struct *vma)
 
int(* open )(struct posix_clock *pc, fmode_t f_mode)
 
uint(* poll )(struct posix_clock *pc, struct file *file, poll_table *wait)
 
int(* release )(struct posix_clock *pc)
 
ssize_t(* read )(struct posix_clock *pc, uint flags, char __user *buf, size_t cnt)
 

Detailed Description

struct posix_clock_operations - functional interface to the clock

Every posix clock is represented by a character device. Drivers may optionally offer extended capabilities by implementing the character device methods. The character device file operations are first handled by the clock device layer, then passed on to the driver by calling these functions.

: The clock driver should set to THIS_MODULE : Adjust the clock : Read the current time : Get the clock resolution : Set the current time value : Create a new timer : Remove a previously created timer : Get remaining time and interval of a timer : Set a timer's initial expiration and interval : Optional character device fasync method : Optional character device mmap method : Optional character device open method : Optional character device release method : Optional character device ioctl method : Optional character device read method : Optional character device poll method

Definition at line 57 of file posix-clock.h.

Field Documentation

int(* clock_adjtime)(struct posix_clock *pc, struct timex *tx)

Definition at line 60 of file posix-clock.h.

int(* clock_getres)(struct posix_clock *pc, struct timespec *ts)

Definition at line 64 of file posix-clock.h.

int(* clock_gettime)(struct posix_clock *pc, struct timespec *ts)

Definition at line 62 of file posix-clock.h.

int(* clock_settime)(struct posix_clock *pc, const struct timespec *ts)

Definition at line 66 of file posix-clock.h.

int(* fasync)(struct posix_clock *pc, int fd, struct file *file, int on)

Definition at line 82 of file posix-clock.h.

long(* ioctl)(struct posix_clock *pc, unsigned int cmd, unsigned long arg)

Definition at line 85 of file posix-clock.h.

Definition at line 88 of file posix-clock.h.

int(* open)(struct posix_clock *pc, fmode_t f_mode)

Definition at line 91 of file posix-clock.h.

struct module* owner

Definition at line 58 of file posix-clock.h.

Definition at line 93 of file posix-clock.h.

Definition at line 98 of file posix-clock.h.

int(* release)(struct posix_clock *pc)

Definition at line 96 of file posix-clock.h.

int(* timer_create)(struct posix_clock *pc, struct k_itimer *kit)

Definition at line 69 of file posix-clock.h.

int(* timer_delete)(struct posix_clock *pc, struct k_itimer *kit)

Definition at line 71 of file posix-clock.h.

Definition at line 73 of file posix-clock.h.

Definition at line 76 of file posix-clock.h.


The documentation for this struct was generated from the following file: