mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jean Fekry Rizk <jeanfekry@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Linking with kernel code (Makefile)
Date: Sun, 10 Dec 2000 15:12:33 -0800 (PST)	[thread overview]
Message-ID: <20001210231233.25126.qmail@web204.mail.yahoo.com> (raw)

Hi Kernel World,
I'm new to linux-kernel developement, so I would appreciate any help.

What I want to do:
    create a shared memory segment between user space and kernel space

How am I trying to do it from kernel:
    use the 'newseg' function from 'ipc/shm.c', or even the array shm_segs
directly.

The problem:
    I can't link with the array or the function, this also happens with
all functions that are not defined in 'ksyms'
    Even though I declared 'newseg' and 'shm_segs' as 'extern' in my file

I think my problem is in the Makefile.
I'm using linux-2.2.14
Here is the Makefile from the ipc folder
    O_TARGET:=ipc.o
    O_OBJS  :=util.o msg.o sem.o shm.o
    include  $(TOPDIR)/Rules.make
To compile my file 'mycode.c'- which uses newseg - I just added 'mycode.o'
to the O_OBJS line.
But while making bzImage, it gives the error unresolved external 'newseg'

So my question is how can I link to the kernel source code, or am I not
allowed to?

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2000-12-10 23:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-10 23:12 Jean Fekry Rizk [this message]
2000-12-11 23:31 Jean Fekry Rizk
2000-12-12  0:34 Jean Fekry Rizk

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=20001210231233.25126.qmail@web204.mail.yahoo.com \
    --to=jeanfekry@yahoo.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®