lkml.org 
[lkml]   [1997]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: MOD_INC_USE_COUNT
Date
Followup to:  <19971110221845.14122@Elf.mj.gts.cz>
By author: Pavel Machek <pavel@Elf.mj.gts.cz>
In newsgroup: linux.dev.kernel
>
> There's a bigger error. Imagine me redesigning some code. Aha - but
> how can I know if someone depends on this code not blocking?
>
> It may be nice idea to add /* Must not block */ comment to every
> function that may not block... Anyone who has more knowledge than me
> volunteering?
>

Maybe we could get a gcc hack using the __attribute__(())
mechanism... say __attribute__((no_block)); any routine marked
nonblocking would print a warning if it called a blocking routine. I
understand this is a mechanism already build into gcc to support
various system-dependent hacks...

-hpa
--
PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
See http://www.zytor.com/~hpa/ for web page and full PGP public key
I am Bahá'í -- ask me about it or see http://www.bahai.org/
"To love another person is to see the face of God." -- Les Misérables

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.051 / U:0.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site