Re: __builtin_return_address(0) and schedule()

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

 



On Fri, Mar 10, 2006 at 13:00:29 +0530, Manav Kataria wrote:
> Is this a stack manipulation function ? I googled up for it but couldnt 
> find much apart from message discussions. Can you give a brief excerpt 
> on this interesting topic or quote an LXR / documentation link please.

It's a GCC builtin function. See GCC manual.
It reads the value--return address--from stack.

> Thanks,
> Manav
> 
> Mulyadi Santosa wrote:
> >Hi..
> >
> >  
> >>Do  you mean if there is a function A that calls an inline function B
> >>that  in turn calls schedule(), the __builtin_return_address(0) in
> >>schedule()  will return the address of function A?
> >>    
> >
> >Exactly...
> >
> >regards
> >
> >Mulyadi
> >
> >
> >--
> >Kernelnewbies: Help each other learn about the Linux kernel.
> >Archive:       http://mail.nl.linux.org/kernelnewbies/
> >FAQ:           http://kernelnewbies.org/faq/
> >
> >  
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
-- 
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature


[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