In message <001e01c0020c$d257b3c0$[EMAIL PROTECTED]>, "Theo van Klaveren"
writes:
>I think I've finally figured out why AudioFS isn't working (aside from an
>endianess error in v0.1), but I can't think of a solution. The problem I've
>found is as follows: The code in atapi-cd.c (from Soren's ATA driver)
>assumes the passed buffer (in the ioctl struct) is in user-space. The
>following is the offending piece of code from the CDIOCREADAUDIO ioctl call:
>
>--- snip ---
> if ((error = atapi_queue_cmd(cdp->atp, ccb, buffer, size,
> ATPR_F_READ, 30, NULL,NULL)))
> break;
>
> if ((error = copyout(buffer, ubuf, size)))
> break;
>--- snip ---
You want to look at "struct uio", but it may be an ugly thing to get it
used where you need it.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message