Re: What is "__attribute__()" in kernel code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Fri, Sep 30, 2011 at 3:53 PM, anish singh <anish198519851985@xxxxxxxxx> wrote:
On Fri, Sep 30, 2011 at 3:28 PM, sandeep kumar
<coolsandyforyou@xxxxxxxxx> wrote:
> Hi all,
>
> I was wondering what __attribute__ does in the kernel code?
> I found several definitions but couldnot come to one conclusion..
>
> __releases(x)  is defined in compiler.h. What does this mean??
> # define __releases(x)                  __attribute__((context(x,1,0)))
GCC directive ?
> Thanking you
> --
> With regards,
> Sandeep Kumar Anantapalli,
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Anish,

Refer link http://www.unixwiz.net/techtips/gnu-c-attributes.html

Regards,
Rohan Puri
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux