geterror - return I/O error
#include <sys/types.h> #include <sys/buf.h> #include <sys/ddi.h> int geterror(struct buf *bp);
Architecture independent level 1 (DDI/DKI).
bp
The geterror() function returns the error number from the error field of the buffer header structure.
An error number indicating the error condition of the I/O request is returned. If the I/O request completes successfully, 0 is returned.
The geterror() function can be called from user, interrupt, or kernel context.
buf(9S)
Writing Device Drivers
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |