mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: Tom Dickson <tdickson@inostor.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Why doesn't memchr appear in ksyms?
Date: Thu, 30 Sep 2004 08:58:55 -0700	[thread overview]
Message-ID: <20040930085855.1b79c63a.rddunlap@osdl.org> (raw)
In-Reply-To: <415C2C25.7030807@inostor.com>

On Thu, 30 Sep 2004 08:54:13 -0700 Tom Dickson wrote:

| -----BEGIN PGP SIGNED MESSAGE-----
| Hash: SHA1
| 
| According to
| http://kernelnewbies.org/documents/kdoc/kernel-api/r1708.html I should
| be able to use memchr in a module, however, when I try to load the
| module insmod complains that memchr is not available; a grep memchr
| /proc/ksyms shows that it doesn't exist.
| 
| Is there some special kernel option I have to set to enable it? memcpy
| and other mem* externs are there.
| 
| Thank you (for answering a simple question)
| 
| Kernel 2.4.26 on a Pentium 3 system

memchr() is compiled/built inline, not as an exported function.

If it's not working for you, maybe you aren't building with "-O2"
(gcc optimization level 2), which is needed for kernel builds.


--
~Randy
MOTD:  Always include version info.
(Again.  Sometimes I think ln -s /usr/src/linux/.config .signature)

      reply	other threads:[~2004-09-30 16:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-30 15:54 Tom Dickson
2004-09-30 15:58 ` Randy.Dunlap [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=20040930085855.1b79c63a.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tdickson@inostor.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®