본문 바로가기
Linux

[Linux] IO CTL

by 꾸압 2023. 11. 4.

 

<설명>

  - Input/Output Control 의 약어

  - System Call(시스템 호출) 의 한 종류

  - 장치별 입력, 출력 작업, 일반 시스템 호출로 표현 불가능한 기타 작업 수행에 쓰임

  - 주로 Driver 와 User Interface 간 통신을 제공하며, 특정 장치에 대한 설정을 구성하거나 변경 시 유용.

  - 예시로 IO CTL을 통해 printer 의 글꼴 크기 등 구성 옵션을 설정하거나 새 글꼴로 설정.

  - Window 환경에서는 비슷한 함수로 'DeviceIoControl' 이 있음.

 


 

<출처_1> https://stackoverflow.com/questions/15807846/ioctl-linux-device-driver#:~:text=The%20ioctl%20function%20is%20useful,font%20to%20a%20new%20one

 

IOCTL Linux device driver

Can anyone explain me, What is IOCTL? What is it used for? How can I use it? Why can't I define new function that does the same work as IOCTL?

stackoverflow.com

 

<출처_2> https://learn.microsoft.com/en-us/windows/win32/devio/device-input-and-output-control-ioctl-

 

Device Input and Output Control (IOCTL) - Win32 apps

The DeviceIoControl function provides a device input and output control (IOCTL) interface through which an application can communicate directly with a device driver.

learn.microsoft.com

 

<출처_3> https://www.ibm.com/docs/en/zos/2.3.0?topic=functions-ioctl-control-device

 

ioctl() — Control device

Requests that the STREAMS implementation send the SIGPOLL signal to the calling process when a particular event has occurred on the STREAM associated with fildes. I_SETIG supports an asynchronous processing capability in STREAMS. The value of arg is a bitm

www.ibm.com

 

 

'Linux' 카테고리의 다른 글

[Linux] Syscall  (0) 2023.11.04
[Linux] UEFI 란?  (0) 2023.10.29
[Linux] Linux OS 부팅 순서  (0) 2023.10.28
[Kali] Kali 설치  (2) 2023.02.27

댓글