mach_vm_region_recurse()

Questions and Answers about all things *OS (macOS, iOS, tvOS, watchOS)

mach_vm_region_recurse()

Postby Delphi » Tue Mar 01, 2016 8:00 pm

Hi there! I wanted to ask a question about the above function (mach_vm_region_recurse()). In the book, there's a heading named "Experiment: Emulating vmmap(1) with mach_vm_region_recurse", but then the code sample goes on to use mach_vm_region(). Was this just a typo in the heading, or was the code sample changed at last minute?
Delphi
 
Posts: 1
Joined: Tue Mar 01, 2016 7:54 pm

Re: mach_vm_region_recurse()

Postby morpheus » Wed Mar 02, 2016 2:24 am

Changed at the last minute; _recurse is a more efficient function that also goes into submaps. You could also use the non _recurse variant, but it's more code..
morpheus
Site Admin
 
Posts: 532
Joined: Thu Apr 11, 2013 6:24 pm


Return to Questions and Answers

Who is online

Users browsing this forum: No registered users and 1 guest