lkml.org 
[lkml]   [2008]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] __ref annotation of function/data referencing __init/__exit

On Jan 28 2008 22:38, Sam Ravnborg wrote:
>On Sat, Jan 26, 2008 at 07:44:54PM +0100, Sam Ravnborg wrote:
>> Today we have the following annotations for functions/data
>> referencing __init/__exit functions / data:
>>
>> __init_refok for functions
>> __initdata_refok for data
>>
>> and
>> _exit_refok for functions
>>
>> To simplify it and to introduce a shorter annotation I
>> will suggest the following annotation:
>>
>> __ref <= for functions (code) that
>> references __*init / __*exit
>> __refdata <= for variables
>> __refconst <= for const variables
>>
>
>This patch was includedin todays kbuild.git submission
>as I heard no negative feedback.

I would like to see some real-world example of __ref*.
When would you want to "reference" (function pointer?) an __init
function from outside another __init function?


\
 
 \ /
  Last update: 2008-01-29 20:59    [W:0.300 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site