All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan-Erik Lange <jan0385@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Question about context switching
Date: Wed, 11 Jan 2012 20:03:25 +0100	[thread overview]
Message-ID: <4F0DDCFD.3070902@domain.hid> (raw)
In-Reply-To: <BLU166-W4379BD842C749BADC78DE7C49E0@domain.hid>

On 01/11/2012 07:12 PM, Jan-Erik Lange wrote:
> 
> Hello,
> 
> I have a question about the context switching:
> 
> Unless that there a rtdm_copy_to_user() available in the rtdm API.
> Would cause the function copy_to_user() in an xenomai kernel based rt
> task a switch into the secondary domain? Because copy_to_user() not
> actually a syscall right?

Absolutely no function in kernel-space causes an automatic switch to
secondary mode. As Philippe answered to the very first mail you posted
to this list, the only events which cause a switch to secondary mode are:

- invoking a regular linux syscall
- receiving a linux signal (e.g. kill(2) and GDB)
- causing a CPU trap (e.g. invalid memory access), hitting a breakpoint
(e.g. GDB)

All these events only happen for threads in user-space.

-- 
                                                                Gilles.


  reply	other threads:[~2012-01-11 19:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-11 18:12 [Xenomai-core] Question about context switching Jan-Erik Lange
2012-01-11 19:03 ` Gilles Chanteperdrix [this message]
     [not found]   ` <BLU166-W11229BDE02887632739145C49E0@domain.hid>
2012-01-12 13:36     ` [Xenomai-core] FW: " Jan-Erik Lange
2012-01-12 19:42       ` 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=4F0DDCFD.3070902@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jan0385@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.