[LinuxPPS] [RFC] PPS: Implementing LinuxPPS API with new syscalls

Rodolfo Giometti giometti at enneenne.com
Fri Jun 8 12:50:15 CEST 2007


On Fri, Jun 08, 2007 at 09:43:25AM +0200, Rodolfo Giometti wrote:
> 
> To be more generally RFC should defines the time_pps_create() as
> follow:
> 
>    int time_pps_create(char *path, pps_handle_t *handle);
> 
> so users may use it in the following manner:
> 
>    char *path = "/dev/ttyS0";
>    pps_handle_t handle'
>    
>    ...
> 
>    ret = time_pps_create(path, &handle);

If we cannot change RFC we can add a new function as follow:

   int time_pps_create2(char *path, pps_handle_t *handle);

or

   int time_pps_open(char *path, pps_handle_t *handle);

or, better:

   pps_handle_t time_pps_open(char *path);

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127



More information about the LinuxPPS mailing list