[okl4-developer] vTimer Flags ? vSerial ?
Geoffrey Lee
glee at ok-labs.com
Tue Jul 1 19:32:57 EST 2008
On Tue, Jul 01, 2008 at 11:28:24AM +0200, Antonin SUBTIL wrote:
> VTIMER
> #define TIMER_ONESHOT 1
> #define TIMER_ABSOLUTE 2
> #define TIMER_PERIODIC 4
>
> Oneshot is obvious, so does periodic. But I don't understand absolute flag.
> can anyone help me?
With ABSOLUTE the time is specified as a absolute timeout i.e. start
of the timer epoch rather than relative to the current time.
>
> and what happens when timeout occurs? (does this wakeup some thread?)
The thread which requested the timer timeout will be sent an L4
async notification. If you are interested in how that works take
a look at how OK Linux handles Linux timer ticks.
-gl
>
> thanks
>
> 2008/7/1 Antonin SUBTIL <antonin.subtil at gmail.com>:
>
> > documentation " Driver Framework Manual":
> > int virtual_serial_add_memsection( _service, virtual_serial, memsection,
> > passwd, memsection_idx); (5 args)
> >
> > OKLinux : (kernel/arch/l4/driver/ig_serial.c)
> > virtual_serial_add_memsection(ig_serial->server, ig_serial->dev, memsect,0,
> > 0, &env); (6 args)
> >
> > Would be nice to add the definition of flags, arguments ... : how to use
> > the driver :p (Ok, i'm a newbie - and i'm a bit lost in reading linux stuff
> > full of ttys and so)
> >
> > Is that enough to write and read the defined memsection to use the vserial
> > ? (after using add_memsection and so)
> >
> > 2008/7/1 Geoffrey Lee <glee at ok-labs.com>:
> >
> > On Tue, Jul 01, 2008 at 09:45:59AM +0200, Antonin SUBTIL wrote:
> >> > Hello,
> >> >
> >> > The driver documentation is a bit small, and so I'm wondering : what's
> >> the
> >> > vTimer resolution? what's his flags?
> >>
> >> Hi Antonin
> >>
> >> vtimer specifies time in nanoseconds. The hardware clock may implement
> >> a resolution coarser than this.
> >>
> >>
> >> > About vSerial, i'm wondering why ig_vserial in Oklinux use 6 arguments
> >> with
> >> > add_memsection instead of 5 (according to doc)? how shall we use them?
> >>
> >> The code should be the up to date source. If you point us to the
> >> relevant documentation we can get that updated. Please note in
> >> OK Linux that call is actually an RPC to the serial server, the
> >> server-side implementation is located in
> >> iguana/vserial/src/serial_server.c.
> >>
> >> >
> >> > Thanks
> >>
> >> -gl
> >> >
> >> > --
> >> > Antonin Subtil,
> >> > 35 rue Donissan
> >> > FR-33000 Bordeaux
> >> > +33 (0)6.86.04.41.33
> >> > (anciennement +33 (0)6.77.40.17.69)
> >> >
> >> > Economisez du papier, limitez votre production de déchets : n'imprimez
> >> ce
> >> > message que si nécessaire (et... en recto-verso) !
> >>
> >> > _______________________________________________
> >> > Developer mailing list
> >> > Developer at okl4.org
> >> > https://lists.okl4.org/mailman/listinfo/developer
> >>
> >>
> >> --
> >>
> >>
> >
> >
> > --
> > Antonin Subtil,
> > 35 rue Donissan
> > FR-33000 Bordeaux
> > +33 (0)6.86.04.41.33
> > (anciennement +33 (0)6.77.40.17.69)
> >
> > Economisez du papier, limitez votre production de déchets : n'imprimez ce
> > message que si nécessaire (et... en recto-verso) !
> >
>
>
>
> --
> Antonin Subtil,
> 35 rue Donissan
> FR-33000 Bordeaux
> +33 (0)6.86.04.41.33
> (anciennement +33 (0)6.77.40.17.69)
>
> Economisez du papier, limitez votre production de déchets : n'imprimez ce
> message que si nécessaire (et... en recto-verso) !
--
More information about the Developer
mailing list