mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Erik Mouw <J.A.K.Mouw@ITS.TUDelft.NL>
To: Anil Kumar <anilk@subexgroup.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: __exit
Date: Thu, 17 May 2001 20:14:21 +0200	[thread overview]
Message-ID: <20010517201421.L12745@arthur.ubicom.tudelft.nl> (raw)
In-Reply-To: <E150IcL-0003v5-00@f4.mail.ru> <NEBBIIKAMMOCGCPMPBJOMEFECCAA.anilk@subexgroup.com>
In-Reply-To: <NEBBIIKAMMOCGCPMPBJOMEFECCAA.anilk@subexgroup.com>; from anilk@subexgroup.com on Sun, Jun 17, 2001 at 04:02:44PM +0530

On Sun, Jun 17, 2001 at 04:02:44PM +0530, Anil Kumar wrote:
> what does __exit, __p and other such directives means in the linux source
> code. what is its significance.

The macros __init and __exit are defined in include/linux/init.h:

#define __init          __attribute__ ((__section__ (".text.init")))
#define __exit          __attribute__ ((unused, __section__(".text.exit")))

And they tell the compiler to put the function in .text.init and
.text.exit sections of the object file.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/

      reply	other threads:[~2001-05-17 18:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-17  7:54 [PATCH] missing adlib release region Samium Gromoff
2001-06-17 10:32 ` __exit Anil Kumar
2001-05-17 18:14   ` Erik Mouw [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010517201421.L12745@arthur.ubicom.tudelft.nl \
    --to=j.a.k.mouw@its.tudelft.nl \
    --cc=anilk@subexgroup.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®