Re: question about __v annotation

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Shawn wrote:
> hello guys,
>  I got a newbie confused when I was looking into the source code of
> s3c2440's RTC driver.I dont know what is __v excatly means.anyone can
> tell?thanks anyway!
> 
> #define readb(c) ({ __u8  __v = __raw_readb(__mem_pci(c)); __v; })
> 
> -- 
> GNU powered it...
> GPL protect it...
> God blessing it...
> 
> regards
> HFG--Shawn the R0ck

Hi,
__v is a variable name.
If you convert this macro to a function it would look something like:

uint8_t f(uint8_t *addr)
{
	uint8_t __v = 0;
	__v = _raw_readb(__mem_pci(addr));
	return __v;
}

Regards
T.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktATcoACgkQMWzB+ySr3HLbdwCgkxxEHjFS89YihCIuWyTsjBAx
D/0AoJl+cmsMqWTS54BPadmHA4dx8djt
=sMgA
-----END PGP SIGNATURE-----

--
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