Files
MentOS/mentos/inc/fs/ioctl.h
T
Enrico Fraccaroli (Galfurian) 1cbc7519c9 Add missing pragma once
2023-07-12 14:27:21 -04:00

15 lines
591 B
C

/// @file ioctl.h
/// @brief Declares device controlling operations.
/// @copyright (c) 2014-2023 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#pragma once
/// @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);