From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [patch 2/4] RTDM support for select-like service.
Date: Tue, 12 Feb 2008 11:33:36 +0100 [thread overview]
Message-ID: <47B17600.4040900@domain.hid> (raw)
In-Reply-To: <47B14C92.204@domain.hid>
Jan Kiszka wrote:
> Gilles Chanteperdrix wrote:
>> I also have the choice of defining the service needed
>> (rt_dev_select_bind) as a callback in the posix module, the RTDM module
>> setting this callback when loaded (like what the rtcap module does with
>> rtnet). But I wanted something simple, so I aimed at Kconfig stuff.
>>
>
> If you can live with the callback being NULL, you could also perfectly
> wrap some ifdef CONFIG_...RTDM[_MODULE] around the current invocations.
> Then you don't need the dependency above. I think I have to look at the
> code...
>
I understood the core of your problem meanwhile. Here is a better
suggestion:
Index: ksrc/skins/posix/Kconfig
===================================================================
--- ksrc/skins/posix/Kconfig (Revision 3499)
+++ ksrc/skins/posix/Kconfig (Arbeitskopie)
@@ -47,9 +47,15 @@ config XENO_OPT_POSIX_INTR
RTDM skin is the preferred way of implementing drivers), leave this
option unselected.
+if XENO_SKIN_RTDM = m && XENO_SKIN_RTDM != XENO_SKIN_POSIX
+ comment "Note: Select support only available if the POSIX skin is built"
+ comment "as module or the RTDM skin is built into the kernel as well."
+endif
+
config XENO_OPT_POSIX_SELECT
bool "Select syscall"
select XENO_OPT_SELECT
+ depends on XENO_SKIN_RTDM != m || XENO_SKIN_RTDM = XENO_SKIN_POSIX
help
This option allows applications using the Xenomai POSIX skin in
@@ -65,10 +71,3 @@ config XENO_OPT_DEBUG_POSIX
cleaned up POSIX objects it detects on process termination.
endif
-
-if XENO_OPT_POSIX_SELECT && XENO_SKIN_POSIX = y && XENO_SKIN_RTDM = m
- comment "This configuration will not work ! If you enable the POSIX"
- comment "select syscall while the POSIX skin is built-in the kernel,"
- comment "you have to compile the POSIX skin as a module or the RTDM"
- comment "skin built-in the kernel."
-endif
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2008-02-12 10:33 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-09 21:32 [Xenomai-core] [patch 0/4] Support for select-like services Gilles Chanteperdrix
2008-02-09 21:33 ` [Xenomai-core] [patch 1/4] nucleus core support " Gilles Chanteperdrix
2008-02-09 21:35 ` [Xenomai-core] [patch 2/4] RTDM support for select-like service Gilles Chanteperdrix
2008-02-10 14:08 ` Jan Kiszka
2008-02-10 14:37 ` Gilles Chanteperdrix
2008-02-10 14:39 ` Gilles Chanteperdrix
2008-02-10 14:48 ` Jan Kiszka
2008-02-10 14:59 ` Gilles Chanteperdrix
2008-02-10 15:37 ` Gilles Chanteperdrix
2008-02-10 21:48 ` Gilles Chanteperdrix
2008-02-10 22:18 ` Jan Kiszka
2008-02-10 22:28 ` Gilles Chanteperdrix
2008-02-10 22:48 ` Jan Kiszka
2008-02-10 22:56 ` Gilles Chanteperdrix
2008-02-11 21:24 ` Gilles Chanteperdrix
2008-02-11 22:10 ` Jan Kiszka
2008-02-11 22:14 ` Gilles Chanteperdrix
2008-02-11 22:18 ` Jan Kiszka
2008-02-11 22:30 ` Gilles Chanteperdrix
2008-02-12 7:36 ` Jan Kiszka
2008-02-12 10:33 ` Jan Kiszka [this message]
2008-02-12 13:27 ` Gilles Chanteperdrix
2008-02-09 21:36 ` [Xenomai-core] [patch 3/4] posix skin kernel-space support for select Gilles Chanteperdrix
2008-02-09 21:37 ` [Xenomai-core] [patch 4/4] posix skin user-space " Gilles Chanteperdrix
2008-02-10 14:17 ` [Xenomai-core] [patch 0/4] Support for select-like services Jan Kiszka
2008-02-11 7:28 ` Johan Borkhuis
2008-02-11 8:34 ` Gilles Chanteperdrix
2008-02-14 15:33 ` Gilles Chanteperdrix
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=47B17600.4040900@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--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.