lkml.org 
[lkml]   [2008]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch] doc: add a chapter about trylock functions [Bug 9011]
From
Date
On Thu, 2008-05-15 at 10:30 +1000, Rusty Russell wrote:
> On Wednesday 14 May 2008 01:31:47 Matti Linnanvuori wrote:
> > + <function>mutex_trylock()</function> does not suspend your task
> > + but returns non-zero if it could lock the mutex on the first try
> > + or 0 if not. This function cannot be safely used in hardware or
> > + software interrupt contexts despite not sleeping.
>
> I know this is what the documentation says, but I can't see why. Ingo?

because who would then own the lock?



\
 
 \ /
  Last update: 2008-05-16 14:25    [W:0.027 / U:1.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site