lkml.org 
[lkml]   [2009]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] kernel.h: Add DO_ONCE statement expression macro
On Thu, May 21, 2009 at 04:00:22PM -0700, Joe Perches wrote:
> Add a DO_ONCE statement expression analogous to printk_once
> that executes any arbitrary statement exactly once.
>
> This will take the place of printk_once so that
> DO_ONCE(pr_<foo>) or any other statement performed
> a single time may be easily written.

Interesting, how telling somebody that they need to learn C is considered
an unacceptable thing to do. Hostile to newbies, or some such. Introducing
more magic that has to be learnt if one wants to read the kernel source, OTOH,
is just fine...


\
 
 \ /
  Last update: 2009-05-22 02:29    [W:0.074 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site