Date: Tue, 26 Jun 2007 13:02:46 +1000 From: Lawrence Stewart <lstewart@room52.net> To: freebsd-fs@freebsd.org Cc: James Healy <jhealy@swin.edu.au> Subject: Writing a plain text file to disk from kernel space [FYI] Message-ID: <468081D6.6010603@room52.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?468081D6.6010603>