Elmer Joandi wrote: > > > understanding the > > > underlying principles and the code. > > Speaking about that, I have been long time dreaming > about following strict standard template for linux kernel functions: > (macroplay intended) > ---------------------- > INLINE(context,level,for_speed, fixed) returntype functionname > (PARM(parameters)){ > DEBUG(ENTRY,SUBSYSTEM, module, functionname); > /* function body starts */ > do something > do something > on success goto ok; > on failure goto failure_reason_name; > /* function body ends */ > ok: > on ok do something > DEBUG(EXIT,SUBSYSTEM, module functionname, OK); > exit or return whatever > failure_reason_name; > on this reason do something > DEBUG(EXIT,SUBSYSTEM, module, functionname, reason_name); > exit or return whatever > failure_reason_name1; > on this reason do something > DEBUG(EXIT,SUBSYSTEM, module, functionname, reason_name1); > exit or return whatever > }; > ---------------------- Please have a tought look at the floppy tape streamer driver to see why this is a BAD IDEA. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: Linux/MANOS Kernel Debugger Jeff V. Merkey
- Re: Linux/MANOS Kernel Debugger Mike Galbraith
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Alexander Viro
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Daniel Phillips
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Martin Dalecki
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Jeff V. Merkey
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Ingo Molnar
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Jeff V. Merkey
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Richard Gooch
- kernel debugging Elmer Joandi
- from binary towards source level scalability Martin Dalecki
- from binary towards source level scalability Elmer Joandi
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Ingo Molnar
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... David S. Miller
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... David S. Miller
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Kai Henningsen
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... yodaiken
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Daniel Phillips
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Richard Gooch
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Mike Galbraith
- Re: [ANNOUNCE] Withdrawl of Open Source NDS Project/NTFS/M... Richard Gooch