From: "Federico Paparoni" <federico.paparoni@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Linux kernel 2.4 programming problem
Date: Tue, 12 Jun 2007 15:54:57 +0200 [thread overview]
Message-ID: <7f7732360706120654i34f34da8q6428e41bc5a76728@mail.gmail.com> (raw)
Hi all,
i'm trying to create a simple system call in a kernel 2.4 distribution.
I read guide/articles like this
http://irfanhabib.wordpress.com/2006/10/01/adding-a-system-call-linux-24x/
All the articles say the same things, but the implementation of my new
system call doesn't work.
I create a new entry in arch/i386/kernel/entry.S
I create a new entry in include/asm/unistd.h
I create a new function with the asmlinkage prefix in a source file
already defined (in ipc/sem.c for example)
When i create my user program, it doesn't work. Firstly when i try to
compile i receive a problem like this
: undefined reference to 'errno'
Then I include errno.h (also if i don't understand this step) and the
compilation works, but the syscall neverworks, because the call always
return -1.
Any help?
Any tutorial FOR DUMMY MAN that someone already used?
Cheers
Federico
next reply other threads:[~2007-06-12 13:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-12 13:54 Federico Paparoni [this message]
2007-06-12 15:12 ` Randy Dunlap
2007-06-12 15:17 ` debian developer
2007-06-12 15:18 ` Jan Engelhardt
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=7f7732360706120654i34f34da8q6428e41bc5a76728@mail.gmail.com \
--to=federico.paparoni@gmail.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®