Re: Can the kernel access /?

From: Xavier Bestel (xavier.bestel@free.fr)
Date: Fri Apr 27 2001 - 10:15:03 EST


Le 27 Apr 2001 15:28:04 +0100, Matt a écrit :
> I'm writing a device driver for a DSP card that requires some software
> loaded onto the card for it to function, currently I'm copying the
> software to the /dev node and the driver is doing the magic in it's
> write() handler.
>
> Can the driver pull the file from the filesystem if I were to pass the
> path of the file as an argument on loading the module?

It's generally considered a better idea to load your firmware with a
userspace app doing an ioctl or a mmap on your driver - no nasty races
to take care of, only proven codepaths used.

Xav

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:18 EST