From: Chris Friesen <cfriesen@nortelnetworks.com>
To: linux-kernel@vger.kernel.org
Subject: question about creating char device in 2.4
Date: Wed, 05 Feb 2003 17:03:30 -0500 [thread overview]
Message-ID: <3E418A32.2010308@nortelnetworks.com> (raw)
A coworker of mine had created a character device for 2.2 and is now
looking into porting it forward to 2.4 but he's running into some issues
with the new generic io code.
Basically he impemented a virtual device that had a fixed amount of
buffer space. You could write to/read from that storage space as usual,
with the one exception that once it was full you could continue to write
to it and the writes would succeed.
Basically the ideas was to create something that you could log to and
only the first x bytes would be logged. After that the writes would
still succeed but the data would be thrown away. "cat"ing the file would
then give you the first x bytes that had been stored.
How would you go about hooking in to the 2.4 char device code to do
something equivalent?
Thanks,
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
next reply other threads:[~2003-02-05 21:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-05 22:03 Chris Friesen [this message]
2003-02-05 22:32 ` question about creating char device in 2.4 Jonathan Corbet
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=3E418A32.2010308@nortelnetworks.com \
--to=cfriesen@nortelnetworks.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