All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Maciek Godek <pstrychuj@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] request_region from rtdm_task
Date: Thu, 05 Jul 2007 13:52:14 +0200	[thread overview]
Message-ID: <468CDB6E.7060605@domain.hid> (raw)
In-Reply-To: <e2ceda030707050324je992c01lfb97592b00ef317a@domain.hid>

[-- 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 --]

      reply	other threads:[~2007-07-05 11:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 10:24 [Xenomai-help] request_region from rtdm_task Maciek Godek
2007-07-05 11:52 ` Jan Kiszka [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=468CDB6E.7060605@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=pstrychuj@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.