wut
v1.7.0
Wii U Toolchain
|
User provided socket memory options. More...
Typedefs | |
typedef enum SOMemOptRequest | SOMemOptRequest |
typedef enum SOMemOptFlags | SOMemOptFlags |
Enumerations | |
enum | SOMemOptRequest { SOMEMOPT_REQUEST_INIT = 1 , SOMEMOPT_REQUEST_GET_BYTES_USED = 2 , SOMEMOPT_REQUEST_WAIT_FOR_INIT = 3 , SOMEMOPT_REQUEST_CANCEL_WAIT = 4 } |
enum | SOMemOptFlags { SOMEMOPT_FLAGS_NONE = 0 , SOMEMOPT_FLAGS_BIG_BUFFERS = 1 << 0 } |
Functions | |
int | somemopt (SOMemOptRequest request, void *buffer, uint32_t size, SOMemOptFlags flags) |
Perform a somemopt request. More... | |
User provided socket memory options.
typedef enum SOMemOptRequest SOMemOptRequest |
typedef enum SOMemOptFlags SOMemOptFlags |
enum SOMemOptRequest |
Definition at line 15 of file somemopt.h.
enum SOMemOptFlags |
Enumerator | |
---|---|
SOMEMOPT_FLAGS_NONE | |
SOMEMOPT_FLAGS_BIG_BUFFERS | Changes the distribution between small and big buffers to 50-50 instead of 80-20. |
Definition at line 28 of file somemopt.h.
int somemopt | ( | SOMemOptRequest | request, |
void * | buffer, | ||
uint32_t | size, | ||
SOMemOptFlags | flags | ||
) |
Perform a somemopt request.
request | The request to perform. |
buffer | A 0x40 aligned buffer for SOMEMOPT_REQUEST_INIT. |
size | The size of the buffer for SOMEMOPT_REQUEST_INIT. Minimum size is 0x20000 bytes, maximum size is 0x300000 . |
flags | A combination of flags. |