All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] scheduling of rtdm-handler
@ 2007-05-23 14:41 Stolz, Stefan, PGR2
  2007-05-24  8:05 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Stolz, Stefan, PGR2 @ 2007-05-23 14:41 UTC (permalink / raw)
  To: xenomai

Hello,

i'm developing a rt-driver for the rtdm with Xenomai and i've got one
question.
how are the handler-functions (like rtdm_read_handler,
rtdm_write_handler, ...) scheduled if there are other rt-tasks?
e.g. i've got the rtdm-driver which handles read and write (read and
write have to do some i/o-operations) and a two other rt-tasks. What
happens if the task with the lower priority uses the rtdm-driver to read
and write data and the task with the higher priority want's to run. Are
the i/o-operations peempted by the high priority task? If it is so, is
it possible to give the driver a higher priority or do i have to create
a task with a higher priority in the driver?

Best Regards

Stefan Stolz


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-help] scheduling of rtdm-handler
  2007-05-23 14:41 [Xenomai-help] scheduling of rtdm-handler Stolz, Stefan, PGR2
@ 2007-05-24  8:05 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2007-05-24  8:05 UTC (permalink / raw)
  To: Stolz, Stefan, PGR2; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

Stolz, Stefan, PGR2 wrote:
> Hello,
> 
> i'm developing a rt-driver for the rtdm with Xenomai and i've got one
> question.
> how are the handler-functions (like rtdm_read_handler,
> rtdm_write_handler, ...) scheduled if there are other rt-tasks?
> e.g. i've got the rtdm-driver which handles read and write (read and
> write have to do some i/o-operations) and a two other rt-tasks. What
> happens if the task with the lower priority uses the rtdm-driver to read
> and write data and the task with the higher priority want's to run. Are
> the i/o-operations peempted by the high priority task? If it is so, is
> it possible to give the driver a higher priority or do i have to create
> a task with a higher priority in the driver?

RTDM device handlers run in the context of the caller, i.e. some RT (or
also non-RT) task. Thus, they are schedule like the caller - unless you
apply locking mechanisms like spinlocks which block preemption for a
while or mutexes which may cause priority boosts if contention with
tasks of higher priority occur.

Additionally, there are IRQ handlers which run at highes priority and
RTDM kernel tasks which can be set to custom RT priorities.

No black magic here, it's all standard OS design.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-24  8:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 14:41 [Xenomai-help] scheduling of rtdm-handler Stolz, Stefan, PGR2
2007-05-24  8:05 ` Jan Kiszka

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.