디바이스 드라이버에서 blocking IO구현시..

yhlvyp의 이미지

blocking IO를 구현한 device driver가

FC 4 2.6.11-1에서 wake시 뻗어 버립니다.

2.6초반 커널에서는 잘 작동하던 소스인데 FC 4를 깔고서 make하니 아래와 같은

warning메시지가 뜨는군요..

혹시 이메시지가 무엇을 뜻하는지 아시는분 답변 부탁드립니다.

warning: 'interruptible_sleep_on' is deprecated (declared at include/linux/wait.h:370) Building modules, stage 2.

jeweljar의 이미지

<linux/wait.h>에서 발췌..

Quote:
/*
* These are the old interfaces to sleep waiting for an event.
* They are racy. DO NOT use them, use the wait_event* interfaces above.
* We plan to remove these interfaces during 2.7.
*/
extern void __deprecated FASTCALL(sleep_on(wait_queue_head_t *q));
extern long __deprecated FASTCALL(sleep_on_timeout(wait_queue_head_t *q,
signed long timeout));
extern void __deprecated FASTCALL(interruptible_sleep_on(wait_queue_head_t *q));
extern long FASTCALL(interruptible_sleep_on_timeout(wait_queue_head_t *q,
signed long timeout));