This probably is a silly question, but.... Is is possible to open a file, mmap() it into memory, then pass the address of that map via an ioctl() call to the kernel, which will copy_from_user() that data? Yeah, that's an odd concept, I know... I could always malloc() some memory, read the file in, and then ioctl() it. But, if I could get away with a direct mmap(), that would be much better for me. Matt -- Matthew Dharm Home: [email protected] Maintainer, Linux USB Mass Storage Driver I say, what are all those naked people doing? -- Big client to Stef User Friendly, 12/14/1997
Attachment:
pgpvaw0kLQV9m.pgp
Description: PGP signature
- Follow-Ups:
- Re: mmap() and ioctl()
- From: "Richard B. Johnson" <[email protected]>
- Re: mmap() and ioctl()
- Prev by Date: kernel BUG at fs/sysfs/symlink.c:87 on 2.6.12-rc1-mm4
- Next by Date: Re: non-free firmware in kernel modules, aggregation and unclear copyright notice.
- Previous by thread: kernel BUG at fs/sysfs/symlink.c:87 on 2.6.12-rc1-mm4
- Next by thread: Re: mmap() and ioctl()
- Index(es):