Difference between revisions of "BOSSU:GetNsDataIdList"
Line 6: | Line 6: | ||
{{IPC/RequestEntry|Buffer size in words(max entries).}} | {{IPC/RequestEntry|Buffer size in words(max entries).}} | ||
{{IPC/RequestEntry|u16, starting word-index in the internal NsDataId list. Added with 0x1 to determine the actual word-index. 0xFFFF is for using actual-word-index 0.}} | {{IPC/RequestEntry|u16, starting word-index in the internal NsDataId list. Added with 0x1 to determine the actual word-index. 0xFFFF is for using actual-word-index 0.}} | ||
− | {{IPC/RequestEntry|u32, | + | {{IPC/RequestEntry|u32, target NsDataId.}} |
{{IPC/MapPointerW|Destination pointer}} | {{IPC/MapPointerW|Destination pointer}} | ||
{{IPC/RequestEnd}} | {{IPC/RequestEnd}} | ||
Line 21: | Line 21: | ||
=Filter= | =Filter= | ||
Content filtering is enabled when this word isn't 0xffffffff. This is only used for the following: <code>if(filterword_u16high!=contententryword_u16high || (filterword_u16low & contententryword_u16low) == 0)continue;</code> The contententryword is separate from NsDataId. The NsDataId for the content entry is only written to the output when these checks pass. | Content filtering is enabled when this word isn't 0xffffffff. This is only used for the following: <code>if(filterword_u16high!=contententryword_u16high || (filterword_u16low & contententryword_u16low) == 0)continue;</code> The contententryword is separate from NsDataId. The NsDataId for the content entry is only written to the output when these checks pass. | ||
+ | |||
+ | =Target NsDataId= | ||
+ | This field is only used when starting_wordindex is non-zero or when this field is non-zero. | ||
+ | |||
+ | The NsDataId at the specified start-wordindex must match this field, otherwise error 0xD840F846 is returned. | ||
=Description= | =Description= |
Revision as of 08:27, 28 December 2016
Request
Index Word | Description |
---|---|
0 | Header code [0x00100102] |
1 | u32 filter |
2 | Buffer size in words(max entries). |
3 | u16, starting word-index in the internal NsDataId list. Added with 0x1 to determine the actual word-index. 0xFFFF is for using actual-word-index 0. |
4 | u32, target NsDataId. |
5 | Descriptor for mapping a write-only buffer in the target process |
6 | Destination pointer |
Response
Index Word | Description |
---|---|
0 | Header code |
1 | Result code |
2 | u16 Actual number of output entries. |
3 | u16 Last word-index copied to output in the internal NsDataId list. |
Filter
Content filtering is enabled when this word isn't 0xffffffff. This is only used for the following: if(filterword_u16high!=contententryword_u16high || (filterword_u16low & contententryword_u16low) == 0)continue;
The contententryword is separate from NsDataId. The NsDataId for the content entry is only written to the output when these checks pass.
Target NsDataId
This field is only used when starting_wordindex is non-zero or when this field is non-zero.
The NsDataId at the specified start-wordindex must match this field, otherwise error 0xD840F846 is returned.
Description
This writes an array of u32 entries(NsDataId) to the output buffer, for the current programID.
This eventually calls a function with the following type parameters: 0, 1, 1. This function doesn't use the second type parameter. Afterwards another function is called using the programID.