• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Writing from the kernel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • MTRRs and PATs
      • From: Victor Vedovato <email@hidden>
    • Re: Writing from the kernel
      • From: Michael Smith <email@hidden>
    • Re: Writing from the kernel
      • From: Quinn <email@hidden>
  • Prev by Date: Re: missing IOLog entries in /var/log/system.log
  • Next by Date: Re: Writing from the kernel
  • Previous by thread: Re: missing IOLog entries in /var/log/system.log
  • Next by thread: Re: Writing from the kernel
  • Index(es):
    • Date
    • Thread