From: Christoph Hellwig <hch@infradead.org>
To: Thomas Spatzier <thomas.spatzier@de.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: __put_task_struct unresolved when being used in modules
Date: Wed, 13 Oct 2004 11:29:55 +0100 [thread overview]
Message-ID: <20041013102955.GB30851@infradead.org> (raw)
In-Reply-To: <OF31970E09.9A7F3D25-ONC1256F2C.00380546-C1256F2C.00389262@de.ibm.com>
On Wed, Oct 13, 2004 at 12:17:54PM +0200, Thomas Spatzier wrote:
>
>
>
>
> I have a module that keeps a reference to a task_struct and uses
> get_task_struct and put_task_struct to increment/decrement the
> task_struct's ref count.
> Function __put_task_struct defined in kernel/fork.c does not have
> an associated EXPORT_SYMBOL , so I get an unresolved symbol
> error.
> Is there a reason why __put_task_struct is not exported? Otherwise,
> I would just add the missing EXPORT_SYMBOL. There are a number
> of EXPORT_SYMBOLs already defined in fork.c anyway.
In general module shouldn't deal with task reference counts. If we decide
you have a legitimate reason for doing this from a module after a review here
on lkml we could add an EXPORT_SYMBOL_GPL at the same time your module gets
merged.
p.s. this is really becoming a FAQ ;-)
next prev parent reply other threads:[~2004-10-13 10:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-13 10:17 Thomas Spatzier
2004-10-13 10:29 ` Christoph Hellwig [this message]
2004-10-13 10:49 ` Thomas Spatzier
2004-10-13 20:52 ` Andrew Morton
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=20041013102955.GB30851@infradead.org \
--to=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=thomas.spatzier@de.ibm.com \
/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®