From: Philippe Gerum <rpm@xenomai.org>
To: Dmitry Adamushko <dmitry.adamushko@domain.hid>
Cc: xenomai@xenomai.org
Subject: [Xenomai-core] Re: [PATCH] Auto-allocation of minor values for pipe objects
Date: Wed, 16 Nov 2005 16:38:43 +0100 [thread overview]
Message-ID: <437B5283.6010003@domain.hid> (raw)
In-Reply-To: <OFE0FCA674.602362D5-ONC12570BB.00369D55-C12570BB.00376F54@domain.hid>
Dmitry Adamushko wrote:
> Philippe Gerum <rpm@xenomai.org> wrote on 15.11.2005 23:17:50:
>
> > Dmitry Adamushko wrote:
> > >
> > > Hello,
> > >
> > > enclosed please find a patch that hopefully adds so desired
> > > functionality. I have made various tests with it just now and it seems
> > > to work fine.
> > >
> >
> > Sounds good.
> >
> > > A size of the bitmap is dependent on XNPIPE_NDEVS parameter in the
> same
> > > vein as xnpipe_states depends on it; so hopefully that is what you
> have
> > > meant Philippe (?)
> > >
> >
> > And NDEVS still does not depend on BITS_PER_LONG - yes, that's ok.
> >
> > Two minor missing points :
> >
> > - Doc update for rt_pipe_create() describing P_MINOR_AUTO
> > - ChangeLog frag
>
> Enclosed a final patch.
>
Applied, thanks.
> One thing I wanted to point out is that the exteneded interface is not
> usable for the "rtai" skin since rtf_create() must know a real minor
> before calling xnpipe_connect() (at least it's implemented this way at
> the moment).
>
> int rtf_create (unsigned minor, int size)
>
> {
>
> ...
> fifo = __fifo_table + minor; <---- That's the reason!
>
> err = xnpipe_connect(minor,
> &__fifo_output_handler,
> &__fifo_exec_handler,
> NULL,
> fifo); <---- it's already dependent on minor.
>
> And I don't think, of course, it's a good idea to export a separate
> interface for allocation of minor values from the nucleus. So either:
>
> - rtf_create() should be rewritten differently;
>
> - keep it as is since it looks like the real rtai interface doesn't
> require such a functionality.
>
>
We need to keep the things as they are for the RTAI skin. The art of emulating an
interface includes mimicking its shortcomings.
--
Philippe.
prev parent reply other threads:[~2005-11-16 15:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-15 16:38 [Xenomai-core] [PATCH] Auto-allocation of minor values for pipe objects Dmitry Adamushko
2005-11-15 22:17 ` [Xenomai-core] " Philippe Gerum
2005-11-16 10:05 ` Dmitry Adamushko
2005-11-16 15:38 ` Philippe Gerum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=437B5283.6010003@domain.hid \
--to=rpm@xenomai.org \
--cc=dmitry.adamushko@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.