[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-fs
Subject: Writing a plain text file to disk from kernel space [FYI]
From: Lawrence Stewart <lstewart () room52 ! net>
Date: 2007-06-26 3:02:46
Message-ID: 468081D6.6010603 () room52 ! net
[Download RAW message or body]
Hi all,
As part of a project I've been involved with, we've released some code
and a report that might be of interest to people on this list. One of
our problems was figuring out how to write to a file directly from
kernel space (details archived here:
http://lists.freebsd.org/pipermail/freebsd-hackers/2007-May/020544.html).
It seems to be a problem a few people have come up against, but we
didn't manage to find any obvious answers at the time.
We've made a prototype module (named filewriter) available that
specifically demonstrates file writing from within the kernel. It should
hopefully provide a useful reference implementation for anyone wanting
to do this in the future.
We've also made a technical report available that documents what we
learnt whilst transitioning from noob kernel hackers to guys that have a
(partial) clue. The report is certainly a useful reference for us and
people working at our research centre. We hope it will also be a useful
reference for the community to point people at who are new to kernel
hacking. The report's title is "An Introduction to FreeBSD 6 Kernel
Hacking" and has been released as Centre for Advanced Internet
Architectures Technical Report 070622A.
The code distributions and technical report can be grabbed from
http://caia.swin.edu.au/urp/newtcp/ under the "Tools" and "Papers"
sections respectively.
If you find a use for the code or any bugs in the code/documentation,
we'd be very happy to hear from you.
Cheers,
Lawrence
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic