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

Function sys_ioctl

components/lwp/lwp_syscall.c:796–800  ·  view source on GitHub ↗

* @brief Performs control operations on a file descriptor. * * This system call allows a program to manipulate the behavior of a device or file * associated with the file descriptor `fd` by issuing a control command (`cmd`). * The function provides an interface to interact with device drivers, such as modifying * the settings of a device or performing custom operations. * * @param fd The fi

Source from the content-addressed store, hash-verified

794 * @see sys_open(), sys_read(), sys_write(), ioctl()
795 */
796sysret_t sys_ioctl(int fd, unsigned long cmd, void* data)
797{
798 int ret = ioctl(fd, cmd, data);
799 return (ret < 0 ? GET_ERRNO() : ret);
800}
801
802/**
803 * @brief Retrieves information about a file associated with a file descriptor.

Callers 1

lwp_tty_ioctl_adapterFunction · 0.85

Calls 1

ioctlFunction · 0.50

Tested by

no test coverage detected