[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070607101359.GB15632@enneenne.com>
Date: Thu, 7 Jun 2007 12:14:00 +0200
From: Rodolfo Giometti <giometti@...eenne.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, linuxpps@...enneenne.com
Subject: Re: [RFC] PPS: Implementing LinuxPPS API with new syscalls
On Wed, Jun 06, 2007 at 11:24:16PM +0200, Rodolfo Giometti wrote:
> On Wed, Jun 06, 2007 at 01:29:34PM -0700, Andrew Morton wrote:
>
> > > asmlinkage long sys_time_pps_find(int cmd, int __user *source,
> > > char __user *name, int namelen,
> > > char __user *path, int pathlen);
>
> Try to find a PPS source into the system giving one of its feature.
>
> With cmd==PPS_FIND_SRC we check for a PPS source with index number
> equal to *source, if *source==-1 we just ask for the first PPS source
> defined into the system.
>
> With cmd=PPS_FIND_PATH we check for a PPS source with path name equal
> to path.
>
> Selected source is returned into *source and PPS source info are
> placed into path and name arrays.
Maybe this syscall can be turned into something like:
asmlinkage long sys_time_pps_ioctl(int cmd, void *ptr);
and data are passed through ptr pointer... obviously first implemented
commands will be PPS_FIND_SRC and PPS_FIND_PATH.
This allows future improvements...
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti@...eenne.com
Linux Device Driver giometti@...dd.com
Embedded Systems giometti@...ux.it
UNIX programming phone: +39 349 2432127
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists