Writing from the kernel
Writing from the kernel
- Subject: Writing from the kernel
- From: Kynan Shook <email@hidden>
- Date: Tue, 20 Nov 2007 01:30:09 -0600
For a small research project, I'm interested in all the data written
to (and possibly read from) a couple files. From lots of googling and
a little playing around, the SampleFilterScheme example can do what I
need; I was able to modify it slightly and see the data going through
it in system.log.
Now, I'd like to put the data somewhere besides system.log. From the
archives, I gather (unsurprisingly) that reading from kernel space is
a bad idea[0]. I'm going to assume that if reading is bad, so is
writing. And that the standard C libraries (and hence fopen) are
excluded from the build so that I don't go and do something stupid.
So, what is a good way to get the data out of the kernel? I'm looking
for fast and simple here - it's only a project, and will only ever be
used on my machine, so minimizing the time spent on implementation is
the priority.
Thanks much,
Kynan
[0] http://lists.apple.com/archives/darwin-kernel/2005/Jul/msg00005.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden