From: danielhilst@gmail.com (Daniel Hilst Selli)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Char device initialization
Date: Wed, 09 Nov 2011 11:41:58 -0200 [thread overview]
Message-ID: <4EBA8326.8020809@gmail.com> (raw)
I'm trying to create a example char device. The example compiles fine,
but when I try to "cat" I got "No such device or address". I have
reviewed the code thousend times and can't see what I'm missing
Here is the code -> http://pastebin.com/Td03U0fK
The read method is not good, I know, but is never called.
I use my own running kenrel to test, I know that is danger. I'm building
a qemu enviroment to test this better.
Here is uname -a:
Linux archlinux 3.0-ARCH #1 SMP PREEMPT Fri Oct 7 11:35:34 CEST 2011
x86_64 Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz GenuineIntel GNU/Linux
Any idea?
Thanks
next reply other threads:[~2011-11-09 13:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 13:41 Daniel Hilst Selli [this message]
2011-11-09 13:52 ` Char device initialization Alexandru Juncu
2011-11-09 15:28 ` rohan puri
2011-11-09 17:59 ` Daniel Hilst Selli
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=4EBA8326.8020809@gmail.com \
--to=danielhilst@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).