[gfp] why apparent asymmetry in the double-underscore prefix	convention in alloc_pages/__free_pages, etc.?
    Wei Peng 
    write.to.peng.wei at gmail.com
       
    Fri May 16 01:15:51 EDT 2014
    
    
  
I thought this question should have been asked before; but I cannot find an
answer despite several search attempts. So I ask.
I am curious about the apparent asymmetry in the naming convention of the
"alloc_pages/__free_pages" and "__get_free_pages/free_pages" pairs.
The former pair works on "struct page" while the latter pair works on
"unsigned long"
I understand that double-underscore prefixes "__" in kernel is a convention
for reminder ("make sure you know what you are doing"); how does this
convention apply to explain the apparent asymmetry?
Wei.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140516/3dfb7dbb/attachment.html 
    
    
More information about the Kernelnewbies
mailing list