BOSSU:GetNsDataHeaderInfo: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x002700C2] |- | 1 | ? |- | 2 | ? |- | 3 | Size |- | 4 | (Size << 4) <nowiki>|..."
 
Use IPC template header
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
=Request=
=Request=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{#vardefine:ipc_offset|0}}
!  Index Word
{{IPC/RequestHeader|0x0027|3|2}}
!  Description
{{IPC/RequestEntry|u32, NS Data ID}}
|-
{{IPC/RequestEntry|u8, [[BOSS_Services#NsDataHeaderInfo|HeaderInfoType]]}}
| 0
{{IPC/RequestEntry|u32, Buffer size}}
| Header code [0x002700C2]
{{IPC/MapPointerW|Data buffer}}
|-
{{IPC/RequestEnd}}
| 1
| ?
|-
| 2
| ?
|-
| 3
| Size
|-
| 4
| (Size << 4)  <nowiki>|</nowiki> 0xC
|-
| 5
| Data Pointer
|}


=Response=
=Response=
{| class="wikitable" border="1"
{{IPC/Request}}
|-
{{#vardefine:ipc_offset|0}}
!  Index Word
{{IPC/RequestHeader|0x0027|1|2}}
!  Description
{{IPC/RequestEntry|Result code}}
|-
{{IPC/MapPointerW|Data buffer}}
| 0
{{IPC/RequestEnd}}
| Header code
|-
| 1
| Result code
|}


=Output structure=
=Description=
{| class="wikitable" border="1"
Gets information from the header of the given NS Data ID of the program ID of the current session.
|-
!  Offset
!  Size
!  Description
|-
| 0x0
| 0x8
| programID
|-
| 0x8
| 0x18
| ?
|}

Latest revision as of 02:01, 7 February 2025

Request

Index Word Description
0
Header 0x002700C2 Cmd 0x0027 Param 3 Xlat 2
1 u32, NS Data ID
2 u8, HeaderInfoType
3 u32, Buffer size
4 Descriptor for mapping a write-only buffer in the target process
5 Data buffer

Response

Index Word Description
0
Header 0x00270042 Cmd 0x0027 Param 1 Xlat 2
1 Result code
2 Descriptor for mapping a write-only buffer in the target process
3 Data buffer

Description

Gets information from the header of the given NS Data ID of the program ID of the current session.