Scroll to navigation

bdflush(2) System Calls Manual bdflush(2)

이름

bdflush - start, flush, buffer-dirty-flush데몬은 조정한다.

요약

#include <sys/kdaemon.h>
[[deprecated]] int bdflush(int func, long *address);
[[deprecated]] int bdflush(int func, long data);

설명

Note: Since Linux 2.6, this system call is deprecated and does nothing. It is likely to disappear altogether in a future kernel release. Nowadays, the task performed by bdflush() is handled by the kernel pdflush thread.

bdflush() starts, flushes, or tunes the buffer-dirty-flush daemon. Only a privileged process (one with the CAP_SYS_ADMIN capability) may call bdflush().

func 가 음수이거나 0, 그리고 어떠한 데몬도 실행되지 않았다면 bdflush() 는 데몬 코드를 입력하고 반환하지 않는다.

func 가 1이면 몇몇 dirty buffer가 디스크에 기록된다.

func 가 2이상이고 짝수이면, address 는 길어지고, 튜닝매개변수 번호 (func-2)/2 는 그 주소에 호출자로 반환된다.

If func 가 3이상이고 홀수이면, data 는 길어지고, 커널은 설정튜닝 매개변수 번호 (func-3)/2 에 그 값을 설정한다.

The set of parameters, their values, and their valid ranges are defined in the Linux kernel source file fs/buffer.c.

반환값

If func 는 음수이거나 0이고 데몬이 성공적으로 시작했다. bdflush() 는 반환하지 않는다. 그 외에, 반환값은 성공시 0이고 실패시 errno 는 에러를 나타내도록 설정되면서 -1을 반환한다.

에러

시도는 다른 프로세스가 이미 입력된 후에 데몬코드가 입력되게 만든다.
주소 가 당신이 접근할 수 있는 주소공간 밖에 있다.
시도는 무효의 매개변수 번호에 읽거나 쓰도록 만들거나 매개변수에 무효값은 쓴다.
Caller does not have the CAP_SYS_ADMIN capability.

표준

리눅스.

이력

Since glibc 2.23, glibc no longer supports this obsolete system call.

추가 참조

sync(1), fsync(2), sync(2)

번역

이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: ASPLINUX <man@asp-linux.co.kr>

이 번역은 무료 문서입니다. 저작권 조건에 대해서는 GNU General Public License 버전 3 이상을 읽으십시오. 책임이 없습니다.

이 매뉴얼 페이지의 번역에서 오류를 발견하면 translation-team-ko@googlegroups.com 로 이메일을 보내주십시오.

2023년 3월 30일 Linux man-pages 6.05.01