public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <srostedt@redhat.com>
To: Li Yu <raise.sail@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Esben Nielsen <nielsen.esben@googlemail.com>
Subject: Re: Hi, I have one question about rt_mutex.
Date: Fri, 11 May 2007 08:16:57 -0400	[thread overview]
Message-ID: <46445EB9.8040106@redhat.com> (raw)
In-Reply-To: <4643CD44.1090903@gmail.com>

Li Yu wrote:
> 
> However, I found the sys_futex() do not use rt_mutex, so what's mean of the user futex you said?
> Even, I have not found any usage for rt_mutex in kernel code. Or, some beautiful story will happen in future?
> 

Just need to look a little deeper :-)


sys_futex calls do_futex

do_futex with the option of FUTEX_LOCK_PI will call futex_lock_pi

futex_lock_pi calls rt_mutex_timed_lock or rt_mutex_trylock  both of
which are part of the rtmutex.c code.


So it's there today :-)

-- Steve


  reply	other threads:[~2007-05-11 12:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-10  7:42 Hi, I have one question about rt_mutex Li Yu
2007-05-10 13:00 ` Steven Rostedt
2007-05-11  1:56   ` Li Yu
2007-05-11 12:16     ` Steven Rostedt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-05-10  7:34 Li Yu
2007-05-10  8:19 ` Esben Nielsen

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=46445EB9.8040106@redhat.com \
    --to=srostedt@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nielsen.esben@googlemail.com \
    --cc=raise.sail@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox