>There does have the requirement to read files in the kernel.
>
>We're working on a 10Gb Ethernet driver and we want to let the driver
>update the firmware on-the-fly if needed when the driver is loaded.
>Save the firmware image in a separate file and let the driver read it
>with kobj_open_file() should be an option. But kobj_open_file() is not a
>stable interface. So what's the best practice for the task like this?

Well, if you're the driver in on, then the fact that kobj_open_file()
isn't stable doesn't matter.  If you're in ON, when they change it they 
need to change all consumers of that interface.

Apart from kobj_open_file(), we've also used specific daemon which will
download the file through a ioctl; that is what we do for the SPARC 
graphics hardware.

Casper

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to