Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Aug 2000 16:24:23 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        "Theo van Klaveren" <t.vanklaveren@student.utwente.nl>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: In-kernel ioctl calls 
Message-ID:  <9039.965831063@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 09 Aug 2000 16:19:25 %2B0200." <001e01c0020c$d257b3c0$19e55982@student.utwente.nl> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <001e01c0020c$d257b3c0$19e55982@student.utwente.nl>, "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
phk@FreeBSD.ORG         | 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9039.965831063>