Files
MentOS/mentos/inc/fs/ioctl.h
T
2021-10-04 11:44:02 +02:00

13 lines
642 B
C

/// MentOS, The Mentoring Operating system project
/// @file ioctl.h
/// @brief Declares device controlling operations.
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
/// See LICENSE.md for details.
/// @brief Manipulates the underlying device parameters of special files, or operating
/// characteristics of character special files (e.g., terminals).
/// @param fd Must be an open file descriptor.
/// @param request The device-dependent request code
/// @param data An untyped pointer to memory.
/// @return On success zero is returned.
int sys_ioctl(int fd, int request, void *data);