printer device driver code

Asked by rangesh

hi...i need sample code for printer device....where could i get a sample code???

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Mulqueen
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What does this "Sample code" do? What do you need it for?

Revision history for this message
rangesh (rsripathi781) said :
#2

i need to write my own code for printer. viewing the printer code might help me to give some idea to write my own code. i have seen various device driver code for ubuntu (usr/src/devices) but i could not find it for printer.

Revision history for this message
Best Michael Mulqueen (michael.mulqueen) said :
#3

Typing:
     apt-get source cups-driver-gutenprint
into your terminal should download the source for the Gutenprint driver to your home directory.

I believe that printing is handled in the userspace rather than the kernel, that may explain why you can't find the source in the expected place.

Revision history for this message
rangesh (rsripathi781) said :
#4

thanx a lot sir!!!thanx again!!!!