libnx  v4.8.0
smm.h
Go to the documentation of this file.
1 /**
2  * @file smm.h
3  * @brief ServiceManager-IManager (sm:m) service IPC wrapper.
4  * @author SciresM
5  * @copyright libnx Authors
6  */
7 #pragma once
8 #include "../types.h"
9 #include "../sf/service.h"
10 #include "../sf/tipc.h"
11 
12 /// Initialize sm:m.
14 
15 /// Exit sm:m.
16 void smManagerExit(void);
17 
18 Result smManagerRegisterProcess(u64 pid, const void *acid_sac, size_t acid_sac_size, const void *aci0_sac, size_t aci0_sac_size);
19 Result smManagerUnregisterProcess(u64 pid);
20 
21 /// Initialize sm:m exclusively for tipc (requires <12.0.0 and non-Atmosphere).
23 
24 /// Exit sm:m exclusively for tipc (requires <12.0.0 and non-Atmosphere).
25 void smManagerCmifExit(void);
26 
27 /// Gets the Service object for the actual sm:m service session (requires <12.0.0 and non-Atmosphere).
29 
30 Result smManagerCmifRegisterProcess(u64 pid, const void *acid_sac, size_t acid_sac_size, const void *aci0_sac, size_t aci0_sac_size);
31 Result smManagerCmifUnregisterProcess(u64 pid);
32 
33 /// Initialize sm:m exclusively for tipc (requires 12.0.0+ or Atmosphere).
35 
36 /// Exit sm:m exclusively for tipc (requires 12.0.0+ or Atmosphere).
37 void smManagerTipcExit(void);
38 
39 /// Gets the TipcService object for the actual sm:m service session (requires 12.0.0+ or Atmosphere).
41 
42 Result smManagerTipcRegisterProcess(u64 pid, const void *acid_sac, size_t acid_sac_size, const void *aci0_sac, size_t aci0_sac_size);
43 Result smManagerTipcUnregisterProcess(u64 pid);
Result smManagerInitialize(void)
Initialize sm:m.
void smManagerCmifExit(void)
Exit sm:m exclusively for tipc (requires <12.0.0 and non-Atmosphere).
Result smManagerCmifInitialize(void)
Initialize sm:m exclusively for tipc (requires <12.0.0 and non-Atmosphere).
TipcService * smManagerTipcGetServiceSession(void)
Gets the TipcService object for the actual sm:m service session (requires 12.0.0+ or Atmosphere).
Result smManagerTipcInitialize(void)
Initialize sm:m exclusively for tipc (requires 12.0.0+ or Atmosphere).
void smManagerExit(void)
Exit sm:m.
Service * smManagerCmifGetServiceSession(void)
Gets the Service object for the actual sm:m service session (requires <12.0.0 and non-Atmosphere).
void smManagerTipcExit(void)
Exit sm:m exclusively for tipc (requires 12.0.0+ or Atmosphere).
Service object structure.
Definition: service.h:14
tipc Service object structure
Definition: tipc.h:18
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
u32 Result
Function error code result type.
Definition: types.h:44