Specifications
3-12
Guide to Printers and Printing
6. pioout
7. device driver
Figure 2. Datastream Flow for Common Print Jobs
When the device upon which the job is queued becomes available, the qdaemon invokes
the backend for the queue. In the base operating system world, the backend is commonly
piobe. The qdaemon invokes piobe and passes it arguments in the normal C programming
language fashion, using argc and argv[].
For example, using the command in step 2 from Spooler Data Flow (enq Command) on
page 3-10:
qprt –Pasc –z1 –fp –p12 –s courier –C –N3 /etc/motd
piobe is passed the following arguments:
• argc = 10
• argv[0] = /usr/lib/lpd/piobe
• argv[1] – –f
• argv[2] = p
• argv[3] = –z
• argv[4] = 1
• argv[5] = –p
• argv[6] = 12
• argv[7] = –s
• argv[8] = courier
• argv[9] = /etc/motd