SRV:RegisterClient: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Neobrain (talk | contribs)
No edit summary
Steveice10 (talk | contribs)
 
(2 intermediate revisions by 2 users not shown)
Line 9: Line 9:
|-
|-
| 1
| 1
| Handle to associate with the ''srv:'' session; use 0x20 to ask the kernel to use the current process handle.
| Must be translate-header value 0x20.
|-
| 2
| The kernel writes the PID of the current process here.
|}
|}


Line 25: Line 28:
|}
|}


Registers the given process handle for use of other ''srv:'' commands. Based on the process ID, ''srv:'' performs some rudimentary access control.
=Description=
 
Registers the given process ID for use of other ''srv:'' commands. Based on the process ID, ''srv:'' performs some rudimentary access control.
 
Internally sm-module just writes the input PID into the object associated with the user-process session-handle.

Latest revision as of 00:15, 1 February 2016

Request

Index Word Description
0 Header code [0x00010002]
1 Must be translate-header value 0x20.
2 The kernel writes the PID of the current process here.

Response

Index Word Description
0 Header code
1 Result code

Description

Registers the given process ID for use of other srv: commands. Based on the process ID, srv: performs some rudimentary access control.

Internally sm-module just writes the input PID into the object associated with the user-process session-handle.