Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: MOD_INC_USE_COUNT | Date | 11 Nov 1997 11:29:07 GMT |
| |
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
| |