MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ioctl

Function ioctl

components/dfs/dfs_v1/src/dfs_posix.c:528–539  ·  view source on GitHub ↗

* this function is a POSIX compliant version, which shall perform a variety of * control functions on devices. * * @param fildes the file description * @param cmd the specified command * @param ... represents the additional information that is needed by this * specific device to perform the requested function. * * @return 0 on successful completion. Otherwise, -1 shall be returned and errn

Source from the content-addressed store, hash-verified

526 * set to indicate the error.
527 */
528int ioctl(int fildes, int cmd, ...)
529{
530 void *arg;
531 va_list ap;
532
533 va_start(ap, cmd);
534 arg = va_arg(ap, void *);
535 va_end(ap);
536
537 /* we use fcntl for this API. */
538 return fcntl(fildes, cmd, arg);
539}
540RTM_EXPORT(ioctl);
541
542/**

Callers 6

sys_ioctlFunction · 0.50
tcgetattrFunction · 0.50
tcsetattrFunction · 0.50
tcflushFunction · 0.50
tcflowFunction · 0.50
recv_commFunction · 0.50

Calls 1

fcntlFunction · 0.70

Tested by 1

recv_commFunction · 0.40