All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] request_region from rtdm_task
@ 2007-07-05 10:24 Maciek Godek
  2007-07-05 11:52 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Maciek Godek @ 2007-07-05 10:24 UTC (permalink / raw)
  To: xenomai-help

Hi,

is it OK to call function request_region from kernel rtdm task?

or, should there be any problems when using io ports in rtdm task from
range requested in non-rt kernel thread?

thanks in advance
maciek


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

* Re: [Xenomai-help] request_region from rtdm_task
  2007-07-05 10:24 [Xenomai-help] request_region from rtdm_task Maciek Godek
@ 2007-07-05 11:52 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2007-07-05 11:52 UTC (permalink / raw)
  To: Maciek Godek; +Cc: xenomai-help

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

Maciek Godek wrote:
> Hi,
> 
> is it OK to call function request_region from kernel rtdm task?

Generally, you have to review each Linux service you call from RT
context /wrt determinism and locking issues. And often this analysis is
kernel release-dependent. So, better avoid this. This is even more
unneeded when service like this one aim at the driver initialisation,
not at its operation mode.

> 
> or, should there be any problems when using io ports in rtdm task from
> range requested in non-rt kernel thread?

request_region does not track the calling process implicitly. All it
saves is the arbitrary name you passed. So, yes, you can call it safely
during the usual, non-RT driver initialisation and simply use the ports
later on in RT context. You could even play roulette and skin
request_region, but that would be error-prone or at least bad style (for
any kind of Linux driver).

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-07-05 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-05 10:24 [Xenomai-help] request_region from rtdm_task Maciek Godek
2007-07-05 11:52 ` 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.