I use BUF_STRATEGY() in a kernel module to read a sector on a device like
/dev/ad0s3g. The biowait() routine after BUF_STRATEGY() gives me errors
like EALREADY and EPERM from time to time.  I find out that these errors
occur after I already wrote the same device by another program.  If I wait
a bit longer or try again, the BUF_STRATEGY() works fine and no error
happens.

I am wondering who is giving these errors. Is it the hardware? If so, the
kernel should somehow translate the hardware error to EALREADY and EPERM.
What is the exact meaning of these two errors?

Thanks,

-Zhihui


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to