Re: what means the gcc attribute of "context"?

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

 



On Fri, Jul 18, 2008 at 03:10:24PM -0400, Robert P. J. Day wrote:
> 
>   from include/linux/compiler.h:
> 
> # define __acquires(x)  __attribute__((context(x,0,1)))
> # define __releases(x)  __attribute__((context(x,1,0)))
> # define __acquire(x)   __context__(x,1)
> # define __release(x)   __context__(x,-1)
> 
> but the gcc user manual doesn't define the meaning of that attribute.
> is it explained in detail elsewhere?  (and why doesn't the manual
> mention it?)

It's inside an #ifdef __CHECKER__ - it's for sparse, not for gcc.

> rday

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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