Kernelnewbies Mailing Lists
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

ALIGN MACRO understanding

sdptroy3@gmail.com

Nov. 7, 2013
5:34 a.m.

While going through kernel source , I came across this ALIGN macro #define ALIGN <http://lxr.free-electrons.com/ident?i=ALIGN>(x <http://lxr.free-electrons.com/ident?i=x>, a <http://lxr.free-electrons.com/ident?i=a>) __ALIGN_KERNEL <http://lxr.free-electrons.com/ident?i=__ALIGN_KERNEL>((x <http://lxr.free-electrons.com/ident?i=x>), (a <http://lxr.free-electrons.com/ident?i=a>)) and #define __ALIGN_KERNEL <http://lxr.free-electrons.com/ident?i=__ALIGN_KERNEL>(x <http://lxr.free-electrons.com/ident?i=x>, a <http://lxr.free-electrons.com/ident?i=a>) __ALIGN_KERNEL_MASK <http://lxr.free-electrons.com/ident?i=__ALIGN_KERNEL_MASK>(x <http://lxr.free-electrons.com/ident?i=x>, (typeof(x <http://lxr.free-electrons.com/ident?i=x>))(a <http://lxr.free-electrons.com/ident?i=a>) - 1) #define __ALIGN_KERNEL_MASK <http://lxr.free-electrons.com/ident?i=__ALIGN_KERNEL_MASK>(x <http://lxr.free-electrons.com/ident?i=x>, mask <http://lxr.free-electrons.com/ident?i=mask>) (((x <http://lxr.free-electrons.com/ident?i=x>) + (mask <http://lxr.free-electrons.com/ident?i=mask>)) & ~(mask <http://lxr.free-electrons.com/ident?i=mask>)) What does this macro do? I have read this article http://stackoverflow.com/questions/13122846/align-macro-kernel but it was not of much help.

Attachments:

  • attachment.html (text/html — 5.7 KB)
0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.12.