Difference between revisions of "Nvnflinger services"

From Nintendo Switch Brew
Jump to navigation Jump to search
(Created page with "= dispdrv = This is "nns::hosbinder::IHOSBinderDriver". {| class="wikitable" border="1" |- ! Cmd || Name |- | 0 || #TransactParcel |- | 1 || #AdjustRefcount |- | 2 ||...")
 
Line 1: Line 1:
 +
Nvnflinger is responsible for mediating the communication between [[Display_services|vi]] and [[NV_services|nvservices]].
 +
The [[Display_services|vi]] sysmodule relays display accesses to nvnflinger which in turn uses [[NV_services#.2Fdev.2Fnvdisp-ctrl|/dev/nvdisp-ctrl]] and [[NV_services#.2Fdev.2Fnvdisp-disp0.2C_.2Fdev.2Fnvdisp-disp1|/dev/nvdisp-disp0, /dev/nvdisp-disp1]] from [[NV_services|nvservices]].
 +
 
= dispdrv =
 
= dispdrv =
 
This is "nns::hosbinder::IHOSBinderDriver".
 
This is "nns::hosbinder::IHOSBinderDriver".

Revision as of 20:50, 30 October 2017

Nvnflinger is responsible for mediating the communication between vi and nvservices. The vi sysmodule relays display accesses to nvnflinger which in turn uses /dev/nvdisp-ctrl and /dev/nvdisp-disp0, /dev/nvdisp-disp1 from nvservices.

dispdrv

This is "nns::hosbinder::IHOSBinderDriver".

Cmd Name
0 #TransactParcel
1 #AdjustRefcount
2 #GetNativeHandle
3 #TransactParcelAuto

This uses Android code.

Command(s) from here are constantly used while displaying gfx.

TransactParcel is used by 1.0.0 official user-processes, while starting with {unknown version} TransactParcelAuto is used instead.

TransactParcel

Takes a s32, an u32, a type-0x5 input buffer, a type-0x6 output buffer, and an input u32. Each word is immediately after the previous word.

AdjustRefcount

Takes 3 input s32s, with each word immediately following the previous word. No additional output.

GetNativeHandle

Takes an input s32 and u32, with the latter immediately following the previous word. Returns an output event handle.

TransactParcelAuto

Takes a s32, an u32, a type-0x21 input buffer, a type-0x22 output buffer, and an input u32. Each word is immediately after the previous word.