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

Function EndpointDequeue

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

//////////////////////// \brief EndpointDequeue (endpoint, id, size, data) Accept a pending connection on an interface and return a new MessageEndpoint \param endpoint (handle_t) Handle ID of specified endpoint \param id (uint64_t*) Returned message ID \param size (uint32_t*) Returned message Size \param data (uint8_t*) Message data buffer \return 0 on empty, 1 on success, negative error code o

Source from the content-addressed store, hash-verified

91 /// \return 0 on empty, 1 on success, negative error code on failure
92 /////////////////////////////
93 __attribute__((always_inline)) inline long EndpointDequeue(const handle_t endpoint, uint64_t* id, uint16_t* size, uint8_t* data){
94 return syscall(SYS_ENDPOINT_DEQUEUE, endpoint, id, size, data);
95 }
96
97 /////////////////////////////
98 /// \brief EndpointCall (endpoint, id, data, rID, rData, size, timeout)

Callers 2

PollMethod · 0.85
PollMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected