Re: Can the kernel access /?
Xavier Bestel (xavier.bestel@free.fr)
27 Apr 2001 17:15:03 +0200
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/