[Xenomai-core] [PATCH v3 19/24] RTIPC: Drop unused wrapper around close_lock_count

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka CC: Philippe Gerum Signed-off-by: Jan Kiszka --- ksrc/drivers/ipc/internal.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/ksrc/drivers/ipc/internal.h b/ksrc/drivers/ipc/internal.h index 296a988..ed8c103 100644 --- a/ksrc/drivers/ipc/internal.h +

[Xenomai-core] [PATCH v3 17/24] rttest: Resolved test device conflicts via separate name spaces

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Usually, all devices of some RTDM class use the same naming scheme. But as test devices are different as they do not provide compatible APIs, let's give them separate name space for their device names. That finally resolves all the detection troubles that showed up once more than

[Xenomai-core] [PATCH v3 20/24] RTDM: Document device close procedure

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Interating over the close handler when it returns -EAGAIN or in case a pending reference to the device context exists is RTDM practice since day one. Documenting this is seriously overdue. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/rtdm/rtdm_driver.h | 11

[Xenomai-core] [PATCH v3 14/24] irqbench: Fix x86-64 build

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Signed-off-by: Jan Kiszka --- configure.in |2 +- src/testsuite/irqbench/Makefile.am |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 0228f51..9d6fe35 100644 --- a/configure.in +++ b/configure.

[Xenomai-core] [PATCH v3 05/24] RTDM: Deprecate open_rt, socket_rt, and close_rt

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Support for RTDM device creation and destruction in RT context will be removed in the future. Start warning the users about this when loading a driver that makes use of it. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/rtdm/rtdm_driver.h | 12 +--- ksrc/

[Xenomai-core] [PATCH v3 04/24] Revert "rtdm: tag syscalls as conforming"

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka This reverts commit 13bfdd477ab880499d2e8f3b82c49ef4d2cccff0. We better let the driver trigger the confoming switch once it detects such a case by using the new service rtdm_rt_capable(). Always being comforming caused regressions for existing designs. CC: Philippe Gerum CC: Al

[Xenomai-core] [PATCH v3 01/24] RTDM: Fix potential NULL pointer dereference

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer The rework in 95278926edc559d4 misses the case that context can be NULL, which can (and has) triggered a kernel oops. Take care of this case. Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/core.c |2 +- 1 files changed, 1 insertions(+)

[Xenomai-core] [PATCH v3 03/24] RTDM: Bump API version and document changes

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Signed-off-by: Jan Kiszka --- include/rtdm/rtdm.h |4 ++-- ksrc/skins/rtdm/API.CHANGES |6 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/rtdm/rtdm.h b/include/rtdm/rtdm.h index 6e02083..1e6e41e 100644 --- a/include/rtdm/rtdm.h +++

[Xenomai-core] [PATCH v3 06/24] RTIPC: Fix memory leak on failing socket creation

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka CC: Philippe Gerum Signed-off-by: Jan Kiszka --- ksrc/drivers/ipc/rtipc.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ksrc/drivers/ipc/rtipc.c b/ksrc/drivers/ipc/rtipc.c index d529912..563cc4e 100644 --- a/ksrc/drivers/ipc/rtipc.c +++ b/ksrc/

[Xenomai-core] [PATCH v3 12/24] RTDM: Add rtdm_context_put()

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka As suggested by Philippe: This is an alias of rtdm_context_unlock(), but it is more intuitive to match it with rtdm_context_get() calls. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/rtdm/rtdm_driver.h |5 + ksrc/skins/rtdm/API.CHANGES |1 + ksrc/skins

[Xenomai-core] [PATCH v3 07/24] RTIPC: Drop support for RT socket creation/deletion

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka This is deprecated now, RT callers will automatically be migrated to NRT to perform the requests. Moreover, dropping it allows us to allocate resources from Linux instead of using the precious system heap. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- ksrc/drivers/ipc/rtip

[Xenomai-core] [PATCH v3 02/24] RTDM: Add rtdm_rt_capable() service

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka This adds rtdm_rt_capable(), a function that can be used by drivers to detect callers that could issue a service request also from the (typically preferred) real-time context. If that is the case, the driver can trigger a restart of the request if the current context is not real-

[Xenomai-core] [PATCH v3 13/24] Fix historic msleep wrapping

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Probably only an academic exercise: Fix the rounding bug in msleep wrapper for kernels < 2.4.28. Signed-off-by: Jan Kiszka --- include/asm-generic/wrappers.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-

[Xenomai-core] [PATCH v3 16/24] irqbench: Auto-detect bases of port address and IRQ values

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Signed-off-by: Jan Kiszka --- src/testsuite/irqbench/irqbench.c |2 +- src/testsuite/irqbench/irqloop.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/testsuite/irqbench/irqbench.c b/src/testsuite/irqbench/irqbench.c index 844f187..ca7a313

[Xenomai-core] [PATCH v3 15/24] irqbench: Refactor user space helpers

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Indent according to our style, push irqbench's inner loop into separate function. No functional changes. Signed-off-by: Jan Kiszka --- src/testsuite/irqbench/irqbench.c | 480 ++--- src/testsuite/irqbench/irqloop.c | 303 -

[Xenomai-core] [PATCH v3 10/24] Analogy: Drop support for opening/closing in real-time

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka This is deprected now, RT callers will automatically be switched to non-RT. CC: Alexis Berlemont Signed-off-by: Jan Kiszka --- ksrc/drivers/analogy/rtdm_interface.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/ksrc/drivers/analogy/rtdm_interface.c

[Xenomai-core] [PATCH v3 23/24] RTDM: Early fd release with poll-free context reference tracking

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Two changes in one as they are tightly related: Once close is called, remove the file descriptor from open table, allowing its reuse while close for the previous user proceeds. The second and major part of the patch avoids time-based polling while waiting for context references

[Xenomai-core] [PATCH v3 11/24] RTDM: Instrument rtdm_context_lock/unlock to detect misuses

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka rtdm_context_lock must only be called on context structures that are already locked, and rtdm_context_unlock must be kept in balance with rtdm_context_get/rtdm_context_lock. Try to check for mistakes by requiring non-null clock_lock_count on entry of both services. Also fix a ty

[Xenomai-core] [PATCH v3 22/24] Add legacy kernel support for delayed_work

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Note that the kernel 2.4 version of schedule_delayed_work is not universally usable. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/asm-generic/wrappers.h |3 +++ include/compat/linux/workqueue.h | 13 + 2 files changed, 16 insertions(+), 0 delet

[Xenomai-core] [PATCH v3 21/24] Add list_first_entry wrapper for older kernels

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/asm-generic/wrappers.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index 64ec43f..d864397 100644 --- a/include/asm-generic/

[Xenomai-core] [PATCH v3 18/24] testing: Clean up Kconfig rules

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka To exclude modules from built-in, make them depend on 'm' is sufficient. Signed-off-by: Jan Kiszka --- ksrc/drivers/testing/Config.in |2 +- ksrc/drivers/testing/Kconfig | 14 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ksrc/drivers/t

[Xenomai-core] [PATCH v3 24/24] RTDM: Add basic unit test

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka This unit test for RTDM validates deferred device closing and driver deregistration due to pending references. Further tests can be added in the future. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/rtdm/rttesting.h|9 ++ ksrc/drivers/testing/Config.in

[Xenomai-core] [PATCH v3 08/24] RTCAN: Drop support for socket creation/deletion in real-time

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka This is deprecated now, RT callers will automatically be migrated to NRT to perform the requests. CC: Wolfgang Grandegger Signed-off-by: Jan Kiszka --- ksrc/drivers/can/rtcan_raw.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/ksrc/drivers/can/rtca

[Xenomai-core] [PATCH v3 00/24] [git pull v3] RTDM fixes and reworks

2010-04-18 Thread Jan Kiszka
The following changes since commit 113ea4d56e8b215cb56ae7673013163ea5a5987d: Gilles Chanteperdrix (1): switchtest: increase stack sizes are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Changes in v3: - extended RTDM unit test to check for r

[Xenomai-core] [PATCH v3 09/24] 16550A: Drop support for device opening/closing in real-time

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka This is deprected now, RT callers will automatically be switched to non-RT. Along this, simplify the allocation logic for the RX timestamp history buffer. We only support allocations from non-RT now and migrate RT callers as required. Signed-off-by: Jan Kiszka --- ksrc/drivers

Re: [Xenomai-core] [PATCH v3 02/24] RTDM: Add rtdm_rt_capable() service

2010-04-18 Thread Philippe Gerum
On Sun, 2010-04-18 at 15:12 +0200, Jan Kiszka wrote: > From: Jan Kiszka > > This adds rtdm_rt_capable(), a function that can be used by drivers to > detect callers that could issue a service request also from the > (typically preferred) real-time context. If that is the case, the driver > can tri

Re: [Xenomai-core] [PATCH v3 02/24] RTDM: Add rtdm_rt_capable() service

2010-04-18 Thread Philippe Gerum
On Sun, 2010-04-18 at 15:26 +0200, Philippe Gerum wrote: > On Sun, 2010-04-18 at 15:12 +0200, Jan Kiszka wrote: > > From: Jan Kiszka > > > > This adds rtdm_rt_capable(), a function that can be used by drivers to > > detect callers that could issue a service request also from the > > (typically pr

Re: [Xenomai-core] [PATCH v3 02/24] RTDM: Add rtdm_rt_capable() service

2010-04-18 Thread Jan Kiszka
Philippe Gerum wrote: > On Sun, 2010-04-18 at 15:12 +0200, Jan Kiszka wrote: >> From: Jan Kiszka >> >> This adds rtdm_rt_capable(), a function that can be used by drivers to >> detect callers that could issue a service request also from the >> (typically preferred) real-time context. If that is th

Re: [Xenomai-core] [PATCH v3 02/24] RTDM: Add rtdm_rt_capable() service

2010-04-18 Thread Jan Kiszka
Philippe Gerum wrote: > On Sun, 2010-04-18 at 15:26 +0200, Philippe Gerum wrote: >> On Sun, 2010-04-18 at 15:12 +0200, Jan Kiszka wrote: >>> From: Jan Kiszka >>> >>> This adds rtdm_rt_capable(), a function that can be used by drivers to >>> detect callers that could issue a service request also fr

[Xenomai-core] [PATCH 08/23] RTDM: Convert device listings to seq_file

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Given a large amount of devices, we could overflow the output page so far. Fix it by moving to seq_file operations. This also allows us to drop the RTDM_PROC_PRINT macros, now that the last user is converted. Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/device.c | 21 +---

[Xenomai-core] [PATCH 11/23] nucleus: Convert faults proc entry to seq_file mechanism

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer The entries depend on the number of CPUs and can thus overflow a single page. Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/arch/generic/hal.c | 148 +-- 1 files changed, 118 insertions(+), 30 deletions(-

[Xenomai-core] [PATCH 15/23] native: Convert buffer registry proc entry to the seq_file mechanism

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/native/buffer.c | 46 ++- 1 files changed, 24 insertions(+), 22 deletions(-) diff --git a/ksrc/skins/native/buffer.c b/ksrc/skins/native/buffer.c index 2d3

[Xenomai-core] [PATCH 14/23] native: Convert the alarm registry proc entry to seq_single

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/native/alarm.c | 43 +++ 1 files changed, 23 insertions(+), 20 deletions(-) diff --git a/ksrc/skins/native/alarm.c b/ksrc/skins/native/alarm.c index 1130df

[Xenomai-core] [PATCH 00/23] [git pull] procfs overflow fixes and seq_file conversions

2010-04-18 Thread Jan Kiszka
The following changes since commit 113ea4d56e8b215cb56ae7673013163ea5a5987d: Gilles Chanteperdrix (1): switchtest: increase stack sizes are available in the git repository at: git://git.xenomai.org/xenomai-jki.git queues/proc This series fixes some of the potential (but when they hap

[Xenomai-core] [PATCH 18/23] native: Convert intr registry proc files to seq_file

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/native/intr.c | 44 +++- 1 files changed, 23 insertions(+), 21 deletions(-) diff --git a/ksrc/skins/native/intr.c b/ksrc/skins/native/intr.c index a69bd46.

[Xenomai-core] [PATCH 03/23] RTDM: Properly clean up on proc setup errors

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/proc.c | 14 +- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ksrc/skins/rtdm/proc.c b/ksrc/skins/rtdm/proc.c index b889f73..70ee4a2 100644 --- a/ksrc/skins/rtdm/proc.c +++ b/ksrc/skins/rtdm/proc.c @@

[Xenomai-core] [PATCH 01/23] hal: Mark file ops of rthal_add_proc_seq const

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Older kernels do not have this tag but do not touch them as well, so perform a type cast when assigning them to proc_dir_entry. Signed-off-by: Jan Kiszka --- include/asm-generic/hal.h |2 +- ksrc/arch/generic/hal.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletio

[Xenomai-core] [PATCH 10/23] nucleus: Convert irq proc entry to seqfile

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer On a system with many CPUs, the size of the data can exceed a single page. Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/nucleus/intr.c | 149 +++ 1 files changed, 90 insertions(+), 59 deletions(-) d

[Xenomai-core] [PATCH 13/23] nucleus: Add infrastructure for supporting the seq_file mechanism in registry objects

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer We augment struct xnpnode with a new element for representing file_operations that allow for using more generic file system methods than read_proc. However, we have to retain read_proc and write_proc for now since not all proc entries are immediately converted. However, we

[Xenomai-core] [PATCH 09/23] nucleus: Convert heap proc entry to seq_file

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka This fixes buffer overflows when large number of heaps are registered. Signed-off-by: Jan Kiszka --- ksrc/nucleus/heap.c | 121 +-- 1 files changed, 98 insertions(+), 23 deletions(-) diff --git a/ksrc/nucleus/heap.c b/ksrc/nucl

[Xenomai-core] [PATCH 04/23] RTDM: Convert fildes proc to single-seq

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka As read_proc is deprecated and will die soon, we have to convert to single-seq. Start with RTDM's fildes proc entry. Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/proc.c | 31 --- 1 files changed, 20 insertions(+), 11 deletions(-) diff --git a/ks

[Xenomai-core] [PATCH 07/23] RTDM: Extend device name space in open_fildes proc output

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Device names can be up to 31 characters long. Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/proc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ksrc/skins/rtdm/proc.c b/ksrc/skins/rtdm/proc.c index e83c0c4..20c9ad8 100644 --- a/ksrc/skins/rtdm/pr

[Xenomai-core] [PATCH 06/23] RTDM: Convert open_fildes reading to seq_file

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka This avoids overflows in case the number of open file descriptors gets too high. Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/proc.c | 119 1 files changed, 80 insertions(+), 39 deletions(-) diff --git a/ksrc/skins/rtdm/proc.

[Xenomai-core] [PATCH 02/23] RTDM: Plug race between proc_read_dev_info and device deregistration

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka As the device references passed to proc_read_dev_info may become invalid while we dereference it, we need to acquire nrt_dev_lock and check the pointer against our list of registered devices. Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/proc.c | 29 +

[Xenomai-core] [PATCH 19/23] native: Convert event registry proc file to seq_file

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/native/event.c | 40 +--- 1 files changed, 21 insertions(+), 19 deletions(-) diff --git a/ksrc/skins/native/event.c b/ksrc/skins/native/event.c index 5b2a8b5..

[Xenomai-core] [PATCH 12/23] nucleus: Convert apc proc file to the seq_file mechanism

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Same procedure as last year, Miss Sophie? Same procedure as every year, James. Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/arch/generic/hal.c | 99 ++- 1 files changed, 72 insertions(+), 27 deletions(-

[Xenomai-core] [PATCH 05/23] RTDM: Convert device information proc entry to single-seq

2010-04-18 Thread Jan Kiszka
From: Jan Kiszka Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/proc.c | 77 1 files changed, 45 insertions(+), 32 deletions(-) diff --git a/ksrc/skins/rtdm/proc.c b/ksrc/skins/rtdm/proc.c index ff264b6..9b5d349 100644 --- a/ksrc/skins/rtdm/pro

[Xenomai-core] [PATCH 20/23] native: Convert heap registry proc file to seq_file

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/native/heap.c | 50 +++-- 1 files changed, 26 insertions(+), 24 deletions(-) diff --git a/ksrc/skins/native/heap.c b/ksrc/skins/native/heap.c index 2a5de8c

[Xenomai-core] [PATCH 16/23] native: Convert cond registry proc entry to the seq_file mechanism

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/native/cond.c | 36 +++- 1 files changed, 19 insertions(+), 17 deletions(-) diff --git a/ksrc/skins/native/cond.c b/ksrc/skins/native/cond.c index 86f83ff..081c2af

[Xenomai-core] [PATCH 22/23] native: Convert queue registry proc entry to seq_file

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/native/queue.c | 44 +++- 1 files changed, 23 insertions(+), 21 deletions(-) diff --git a/ksrc/skins/native/queue.c b/ksrc/skins/native/queue.c index 6a711

[Xenomai-core] [PATCH 21/23] native: Convert mutex registry proc entry to seq_file

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/native/mutex.c | 42 ++ 1 files changed, 22 insertions(+), 20 deletions(-) diff --git a/ksrc/skins/native/mutex.c b/ksrc/skins/native/mutex.c index 6cf7eb1

[Xenomai-core] [PATCH 17/23] native: convert the proc entry for the semaphore registry to seq_file

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/native/sem.c | 38 -- 1 files changed, 20 insertions(+), 18 deletions(-) diff --git a/ksrc/skins/native/sem.c b/ksrc/skins/native/sem.c index 0afea09..f962966

[Xenomai-core] [PATCH 23/23] nucleus: Convert timebases proc entry to seq_file

2010-04-18 Thread Jan Kiszka
From: Wolfgang Mauerer Admittedly, the proc page cannot overflow right now, but since the number of time bases is at least in theory unlimited, let's convert the file while we are at it. Also properly take the nklock when accessing the nktimebase list. Signed-off-by: Wolfgang Mauerer Signed-off

Re: [Xenomai-core] [PATCH v3 17/24] rttest: Resolved test device conflicts via separate name spaces

2010-04-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > From: Jan Kiszka > > Usually, all devices of some RTDM class use the same naming scheme. But > as test devices are different as they do not provide compatible APIs, > let's give them separate name space for their device names. That finally > resolves all the detection troubles

Re: [Xenomai-core] [PATCH v3 23/24] RTDM: Early fd release with poll-free context reference tracking

2010-04-18 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > From: Jan Kiszka > > Two changes in one as they are tightly related: Once close is called, > remove the file descriptor from open table, allowing its reuse while > close for the previous user proceeds. > > The second and major part of the patch avoids time-based polling while

Re: [Xenomai-core] [PATCH v3 17/24] rttest: Resolved test device conflicts via separate name spaces

2010-04-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> From: Jan Kiszka >> >> Usually, all devices of some RTDM class use the same naming scheme. But >> as test devices are different as they do not provide compatible APIs, >> let's give them separate name space for their device names. That finally >>

Re: [Xenomai-core] [PATCH v3 23/24] RTDM: Early fd release with poll-free context reference tracking

2010-04-18 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> From: Jan Kiszka >> >> Two changes in one as they are tightly related: Once close is called, >> remove the file descriptor from open table, allowing its reuse while >> close for the previous user proceeds. >> >> The second and major part of the pa

Re: [Xenomai-core] [PATCH v3 02/24] RTDM: Add rtdm_rt_capable() service

2010-04-18 Thread Philippe Gerum
On Sun, 2010-04-18 at 15:40 +0200, Jan Kiszka wrote: > Philippe Gerum wrote: > > On Sun, 2010-04-18 at 15:26 +0200, Philippe Gerum wrote: > >> On Sun, 2010-04-18 at 15:12 +0200, Jan Kiszka wrote: > >>> From: Jan Kiszka > >>> > >>> This adds rtdm_rt_capable(), a function that can be used by drivers