libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
nv.h File Reference

Nvidia Services. More...

#include <libtransistor/types.h>
Include dependency graph for nv.h:
This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

Nvidia Services.

Function Documentation

int nv_close ( int  fd)

Close the device.

Parameters
fdDevice file descriptor
int nv_ioctl ( int  fd,
uint32_t  rq,
void *  arg,
size_t  size 
)

Issues an ioctl on the device.

Parameters
fdDevice file descriptor
rqIoctl ID
argArguments struct
sizeSize of arguments struct
int nv_open ( const char *  path)

Open a device.

Parameters
pathPath of device to open
Returns
File descriptor of device or -1 upon error