하드웨어의 디바이스 드라이버 중에는 동일한 자원을 다른 목적으로 사용하는 디바이스 드라이버가존재할 수 있다. 이때 해당 영역의 출동 문제를 처리할 수있도록 커널은 다음과 같은 함수를 제공한다.
#include <linux/ioport.h>
- check_region(unsigned long from, unsigned long extent); // 등록 할 수 있는 영역인지 확인
- request_region(unsigned long from, unsigned long extent, const char *name); // I/O영역을 등록
- release_region(unsigned long from, unsigned long extent); // 등록된 I/O 영역을 해체
#include <linux/ioport.h>
- check_region(unsigned long from, unsigned long extent); // 등록 할 수 있는 영역인지 확인
- request_region(unsigned long from, unsigned long extent, const char *name); // I/O영역을 등록
- release_region(unsigned long from, unsigned long extent); // 등록된 I/O 영역을 해체
'Linux > Device Driver' 카테고리의 다른 글
read() 함수의 구현 (0) | 2013.09.26 |
---|---|
디바이스 드라이버 초기화와 종료 함수 처리 (0) | 2013.09.26 |
[define] 디바이스 드라이버에서 주로 쓰이는 에러값 (0) | 2013.09.26 |
[info] module_exit (0) | 2013.09.26 |
[info] module_init 의 초기화 처리 (0) | 2013.09.26 |