MCPcopy Create free account
hub / github.com/SmingHub/Sming / gdb_syscall_read

Function gdb_syscall_read

Sming/System/include/gdb/gdb_syscall.h:228–236  ·  view source on GitHub ↗

* @brief Read data from a host file * @param fd File handle * @param buffer * @param bufSize * @param callback * @param param * @retval int * @see https://sourceware.org/gdb/current/onlinedocs/gdb/read.html */

Source from the content-addressed store, hash-verified

226 * @see https://sourceware.org/gdb/current/onlinedocs/gdb/read.html
227 */
228static inline int gdb_syscall_read(int fd, void* buffer, size_t bufSize, gdb_syscall_callback_t callback = nullptr,
229 void* param = nullptr)
230{
231 GdbSyscallInfo info = {eGDBSYS_read, callback, param};
232 info.read.fd = fd;
233 info.read.buffer = buffer;
234 info.read.bufSize = bufSize;
235 return gdb_syscall(info);
236}
237
238/**
239 * @brief Write data from a host file

Callers 2

asyncReadCallbackFunction · 0.85
gdb_console_readFunction · 0.85

Calls 1

gdb_syscallFunction · 0.50

Tested by

no test coverage detected