libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
nv.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include<libtransistor/types.h>
13 
14 extern result_t nv_result;
15 extern int nv_errno;
16 
21 
28 int nv_open(const char *path);
29 
38 int nv_ioctl(int fd, uint32_t rq, void *arg, size_t size);
39 
45 int nv_close(int fd);
46 
50 void nv_finalize();
51 
52 #ifdef __cplusplus
53 }
54 #endif
Various system types.
int nv_open(const char *path)
Open a device.
uint32_t result_t
Function result.
Definition: types.h:51
void nv_finalize()
Finalize NV service.
result_t nv_init()
Initialize NV service.
int nv_close(int fd)
Close the device.
int nv_ioctl(int fd, uint32_t rq, void *arg, size_t size)
Issues an ioctl on the device.