Re: Equivalent of Linux kmap on Mac OS
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Mar 7, 2007, at 3:45 AM, Anton Altaparmakov wrote: [ ... ] (int)kerr); err = EIO; I may be misunderstanding the simplification you performed, and if so, forgive me... By the way, is there any openly available documentation on UPL interface and XNU VM internals in general? - Really excellent book!: MAC OS X Internals by Amit Singh (http:// www.amazon.co.uk/MAC-OS-Internals-Amit-Singh/dp/0321278542/) You are welcome. - Download the xnu sources from http://www.opensource.apple.com/ darwinsource/ and look in bsd/kern/ubc_subr.c. It has very good comments above most of the function (kind of Kernel doc style like in Linux but not quite). Oops. The nice comments are not in Tiger. )-: Sorry. Best regards, Anton -- Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @) Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK Linux NTFS maintainer, http://www.linux-ntfs.org/ _______________________________________________ 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... On 7 Mar 2007, at 09:20, Nikita Danilov wrote: 07/03/2007 13:36 +0000, Anton Altaparmakov: On 7 Mar 2007, at 07:52, Nikita Danilov wrote: 07/03/2007 04:37 -0800, Terry Lambert: [...] You want to call ubc_upl_map() before you do the I/O, or the UPL could have been recycled while the system was under extreme pressure, which - http://developer.apple.com/referencelibrary/Darwin/idxKernel- date.html and in particular the Kernel Programming Guide (http:// developer.apple.com/documentation/Darwin/Conceptual/ KernelProgramming/). Thanks, Anton, I'll take a look. A couple of years ago, I used to read through osfmk/vm/ a lot, trying to understand UPL interface, hopefully it got better comments (read: any) since then. :-) I should note that I am looking at xnu trunk in Apple internal svn, i.e. what will be in Leopard when it is released. /me checks out the current Tiger 10.4.8 xnu tag (xnu-792.14.14) and looks at bsd/kern/ubc_subr.c(). I wonder if it would be allowed to cut the comments out of the current ubc_subr.c and make them public as a .txt file... /me writes a Sticky to remind me to ask... This email sent to site_archiver@lists.apple.com
participants (1)
-
Anton Altaparmakov