• 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
Re: Writing to file from Kernel Extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing to file from Kernel Extension


  • Subject: Re: Writing to file from Kernel Extension
  • From: Justin Walker <email@hidden>
  • Date: Wed, 6 Apr 2005 17:39:50 -0700


On Apr 6, 2005, at 17:32, Carl Smith wrote:

That was what I was afraid of but I did see some stuff in sys/file.h, like fo_write, fo_close and so on, but could not find it used any where as an example. Are these not the functions I think they are?

First, you need to take a deep breath, practice that Yoga you've been thinking about, and become at peace with the idea that the code practices you are used to using when writing user-mode code are *not* goint to work in the kernel. It is a very restricted environment whose main aim is to support that user-mode code. It needs to do the minimal amount of work necessary to let user applications do their work. File I/O is not one of the things a kernel entity needs to do.


Read Dean's message again. In fact, search the archives and read many of our responses to similar questions over the years :-}.

Cheers,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
Some people have a mental horizon of radius zero, and
call it their point of view.
  -- David Hilbert
--------

_______________________________________________
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:
    • Re: Writing to file from Kernel Extension
      • From: William Kucharski <email@hidden>
References: 
 >RE: Writing to file from Kernel Extension (From: "Carl Smith" <email@hidden>)

  • Prev by Date: RE: Writing to file from Kernel Extension
  • Next by Date: Re: Writing to file from Kernel Extension
  • Previous by thread: RE: Writing to file from Kernel Extension
  • Next by thread: Re: Writing to file from Kernel Extension
  • Index(es):
    • Date
    • Thread