MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / CreateInterface

Function CreateInterface

LibLemon/include/lemon/system/ipc.h:35–37  ·  view source on GitHub ↗

//////////////////////// \brief CreateInterface (service, name, msgSize) - Create a new interface Create a new interface. Interfaces allow clients to open connections to a service \param service (handle_t) Handle ID of the service hosting the interface \param name (const char*) Name of the interface, \param msgSize (uint16_t) Maximum message size for all connections \return Handle ID of service

Source from the content-addressed store, hash-verified

33 /// \return Handle ID of service on success, negative error code on failure
34 /////////////////////////////
35 inline handle_t CreateInterface(const handle_t svc, const char* name, const uint16_t msgSize){
36 return syscall(SYS_CREATE_INTERFACE, svc, name, msgSize);
37 }
38
39 /////////////////////////////
40 /// \brief InterfaceAccept (interface) - Accept connections on an interface

Callers 1

InterfaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected