pdflush1 리눅스 2.6 pdflush VS. 리눅스 2.4 bdflush, kupdate 리눅스 2.4 버전까지 시스템 버퍼에 쌓여있는 내용을 디스크로 기록하는 데몬은 bdflush / kupdate 2가지가 존재하였다. 아래 코드를 보면 kernel_thread 를 사용하여 부팅 초기에 각 데몬을 thread 로 생성하여 실행하는 것을 볼 수 있다. static int __init bdflush_init(void) { static struct completion startup __initdata = COMPLETION_INITIALIZER(startup); kernel_thread(bdflush, &startup, CLONE_FS | CLONE_FILES | CLONE_SIGNAL); wait_for_completion(&startup); kernel_thread(kupdate, &star.. 2009. 9. 4. 이전 1 다음