Hello I'm writing a cups backend for an USB printer with prorietary status information. The USB standard status IOCTL (LPGETSTATUS) call works fine but to get further information about the printer I need to write a vendor specific command on the endpoint 0 and get a structure giving extended status of the printer. Windows usbprint driver implements a IOCTL_USBPRINT_VENDOR_GET_COMMAND macro that does this task. Linux driver apparently doesn't.
First solution is to add a new IOCTL command and patch the usblp.c driver and make necessary calls. This solution will oblige the final user to recompile the kernel (module or builtin driver) which is not practical for most users. Second solution is to write a new driver for the printer. This driver will relay on usb.h functions. Not a very easy task. Third solution, and I'm not sure if it can be done : making the calls inside the cups backend (the backend is called with root priviliges). If someone has the same problem and found a better solution, or if there is a workaround let me know. Any hints ? -- Mahdi ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
