OS공부중인 대학생입니다. 간단한 건데요,,

cloriver의 이미지

인터럽트 발생 시 printk를 이용하여 커널에 출력하는 방법은 알았습니다.
그런데 커널 말고 현재 내가 보고있는
실행화면에 출력하는 방법은 어떻게 하는건가요???
drivers/video를 건드려야되는건지..
예로 타이머 인터럽트 하나만 알려주세요~ ㅠㅠ

mithrandir의 이미지

지금 보고계신 화면이 무엇인지 커널에선 어떻게 알 수 있을까요.

printk는 메시지를 '커널'에 출력하는건 아닙니다;; 커널은 버퍼가 아니니까요.

dmesg man page를 보시면 이런 옵션이 있습니다.

Quote:

-n level
Set the level at which logging of messages is done to the con‐
sole. For example, -n 1 prevents all messages, except panic
messages, from appearing on the console.

언제나 삽질 - http://tisphie.net/typo/
프로그래밍 언어 개발 - http://langdev.net

언제나 삽질 - http://tisphie.net/typo/
프로그래밍 언어 개발 - http://langdev.net