Module ipc.context

IPC context provides utilities for manipulating an IPC request.

Functions

IpcContext.arguments:valueType (idx) Get the type of an argument.
IpcContext.arguments:value (idx) Get the raw argument value.
IpcContext.context:rawArgument (idx) Get the raw argument value.
IpcContext.context:ownThread () Get the thread owning the context.
IpcContext.context:argument (idx) Get the value of the argument processed.

Fields

IpcContext.IPC_ARGUMENT_TYPE_UNSPECIFIED The argument type is not known.
IpcContext.IPC_ARGUMENT_TYPE_HANDLE Argument is a kernel handle.
IpcContext.IPC_ARGUMENT_TYPE_DES8 Argument is a 8-bit descriptor.
IpcContext.IPC_ARGUMENT_TYPE_DES16 Argument is a 16-bit descriptor.
IpcContext.IPC_ARGUMENT_TYPE_DESC8 Argument is a 8-bit constant descriptor.
IpcContext.IPC_ARGUMENT_TYPE_DESC16 Argument is a 16-bit constant descriptor.


Functions

IpcContext.arguments:valueType (idx)
Get the type of an argument.

Parameters:

  • idx The argument to retrieve the type.

Returns:

    One of the IPC_ARGUMENT_TYPE_ constants.
IpcContext.arguments:value (idx)
Get the raw argument value.

Parameters:

  • idx The index of the argument to retrieve value from.

Returns:

    Argument in the form of 32-bit integer value.
IpcContext.context:rawArgument (idx)
Get the raw argument value.

This is a direct call to IpcContext.arguments:value.

Parameters:

  • idx The index of the argument to retrieve value from.

Returns:

    Argument in the form of 32-bit integer value.
IpcContext.context:ownThread ()
Get the thread owning the context.

This is the thread that want to send the IPC message.

Returns:

    Own thread as kernel.thread.
IpcContext.context:argument (idx)
Get the value of the argument processed.

For descriptor argument type, this will return either a std.descriptor8 or std.descriptor16 class.

Otherwise, this will return a 32-bit integer.

Parameters:

  • idx The index of the argument to retrieve value from.

Returns:

    The value at the target index processed.

Fields

IpcContext.IPC_ARGUMENT_TYPE_UNSPECIFIED
The argument type is not known.
IpcContext.IPC_ARGUMENT_TYPE_HANDLE
Argument is a kernel handle.
IpcContext.IPC_ARGUMENT_TYPE_DES8
Argument is a 8-bit descriptor.
IpcContext.IPC_ARGUMENT_TYPE_DES16
Argument is a 16-bit descriptor.
IpcContext.IPC_ARGUMENT_TYPE_DESC8
Argument is a 8-bit constant descriptor.
IpcContext.IPC_ARGUMENT_TYPE_DESC16
Argument is a 16-bit constant descriptor.
generated by LDoc 1.4.6 Last updated 2021-10-30 01:56:22