libtransistor
A userland library for the Nintendo Switch
|
Nvidia Services. More...
#include <libtransistor/types.h>
Go to the source code of this file.
Functions | |
result_t | nv_init () |
Initialize NV service. | |
int | nv_open (const char *path) |
Open a device. More... | |
int | nv_ioctl (int fd, uint32_t rq, void *arg, size_t size) |
Issues an ioctl on the device. More... | |
int | nv_close (int fd) |
Close the device. More... | |
void | nv_finalize () |
Finalize NV service. | |
Variables | |
result_t | nv_result |
int | nv_errno |
Nvidia Services.
int nv_close | ( | int | fd | ) |
Close the device.
fd | Device file descriptor |
int nv_ioctl | ( | int | fd, |
uint32_t | rq, | ||
void * | arg, | ||
size_t | size | ||
) |
Issues an ioctl on the device.
fd | Device file descriptor |
rq | Ioctl ID |
arg | Arguments struct |
size | Size of arguments struct |
int nv_open | ( | const char * | path | ) |
Open a device.
path | Path of device to open |