RO services: Difference between revisions

fixup ro command names
 
Line 26: Line 26:


== MapManualLoadModuleMemory ==
== MapManualLoadModuleMemory ==
Takes a PID-descriptor and 4 input u64s ('''nro_address''', '''nro_size''', '''bss_address''' and '''bss_size'''). Returns an output u64 ('''out_address''').
Takes a PID-descriptor, an u64 pid_reserved, and 4 input u64s ('''nro_address''', '''nro_size''', '''bss_address''' and '''bss_size'''). Returns an output u64 ('''out_address''').


== UnmapManualLoadModuleMemory ==
== UnmapManualLoadModuleMemory ==
Takes a PID-descriptor and an input u64 ('''nro_address''').  
Takes a PID-descriptor, an u64 pid_reserved, and an input u64 ('''nro_address''').  


== RegisterModuleInfo ==
== RegisterModuleInfo ==
Takes a PID-descriptor and 2 input u64s ('''nrr_address''' and '''nrr_size''').  
Takes a PID-descriptor, an u64 pid_reserved, and 2 input u64s ('''nrr_address''' and '''nrr_size''').  


[7.0.0+] [[NRR|NrrKind]] must be 0 (User) for this function to succeed.
[7.0.0+] [[NRR|NrrKind]] must be 0 (User) for this function to succeed.


== UnregisterModuleInfo ==
== UnregisterModuleInfo ==
Takes a PID-descriptor and an input u64s ('''nrr_address''').  
Takes a PID-descriptor, an u64 pid_reserved, and an input u64 ('''nrr_address''').  


== RegisterProcessHandle ==
== RegisterProcessHandle ==
Takes PID-descriptor and a process handle.
Takes a PID-descriptor, a process handle, and an u64 pid_reserved.


== RegisterModuleInfoWithUserProcessHandle ==
== RegisterModuleInfoWithUserProcessHandle ==
Takes a PID-descriptor, a process handle and 2 input u64s ('''nrr_address''' and '''nrr_size''').  
Takes a PID-descriptor, a process handle, an u64 pid_reserved, and 2 input u64s ('''nrr_address''' and '''nrr_size''').  


First, this validates that the pid descriptor matches the pid for the process handle sent to this->Initialize() earlier. Then, this calls the same function as [[#RegisterModuleInfo|RegisterModuleInfo]], except using the passed process handle instead of the one sent to Initialize.  
First, this validates that the pid descriptor matches the pid for the process handle sent to this->Initialize() earlier. Then, this calls the same function as [[#RegisterModuleInfo|RegisterModuleInfo]], except using the passed process handle instead of the one sent to Initialize.