public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* char device kernel module won't write
@ 2002-12-19  5:08 Scott Nash
  0 siblings, 0 replies; only message in thread
From: Scott Nash @ 2002-12-19  5:08 UTC (permalink / raw)
  To: linux-kernel

I am trying to finish a driver to write to a small lcd screen.  I can write
to the screen all day but I need to get the write function to work.  This is
under kernel 2.2.16-22.  I started with the tagged fops set up.  Then to see
if it made a difference I fully declared the fops structure making sure all
the positions were acounted for with NULL or fuction call.  I basically have
nothing but open, release, read, write and llseek defined.  I selected a
major of 200 after not seeing it defined.  The device loads fine.  I made a
test program for it, which opens the device, writes one line and then
closes.  When I try to write,in the test, the debug statements for read
function come up and I get an oops.
Everything says that the write I wrote and placed in fops structure should
be called.  What I am trying to write to device is: struct lcdpacket{int
line;char text[18]};
I have tried to change places of read and write but those incompatible
pointers keep coming up.
I am debating on going on list, but please cc me right now.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-19  5:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19  5:08 char device kernel module won't write Scott Nash

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox