Raspberry Pi_Kor_14.1.1 device 종류와 /dev directory


Published Book on Amazon


All of IOT

Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1

All of IOT

Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2


출판된 한글판 도서


최신 라즈베리파이(Raspberry Pi)로 시작하는 사

물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)

최신 라즈베리파이(Raspberry Pi)로 시작하는 사

물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)


Original Book Contents


14.1   device 개요

 

14.1.1  device 종류와 /dev directory

 

Linux에서 사용하는 device에는 키보드와 같은 character device, 디스크와 같은 block device Ethernet과 같은 network device가 있다.

 

character device block device는 한번 설치되면 "/dev" directory에 하나의 파일인 것처럼 등록되며, 일반 파일처럼 access하는 것을 지원한다. 반면 network device에 대해서는 시스템 kernel이 초기화하는 과정에서 검색된 장치만 device로 등록되며, "/dev" directory에는 파일로 등록되지 않는다

 

보통 character device block device는 실제로 장치가 존재하지 않더라도 특수 장치 파일이 존재한다. 이는 실제 시스템에 장치가 많지 않더라도, /dev directory에 수많은 device 파일이 존재하는 이유이다. 하지만 network device 파일은 실제로 장치가 존재하는 경우에만 만들어진다.


 

Leave a Reply