Re: Writing to file from Kernel Extension
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Apr 6, 2005, at 17:32, Carl Smith wrote: 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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 :-}. This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin Walker