public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Call of tty->driver.write provides segmentation fault
@ 2003-09-04  9:07 Laurent Hugé
  2003-09-04  9:52 ` Russell King
  0 siblings, 1 reply; 5+ messages in thread
From: Laurent Hugé @ 2003-09-04  9:07 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm currently contriving a network driver using the serial port.
I've created my own line discipline (and tests prove it reads well), but I
can't write to the port : I tried to use tty->driver.write(tty, 0, msg,
strlen(msg)) (the same way that in printk.c, i.e. after testing that
tty->driver.write exists) but it crashs into a segmentation fault.
Since the driver implementation is not mine (I'm just using the serial
module), I can't check the function's address, but I believe the tty is ok (it 
is the same I use for the line discipline).

Does anyone know in which way I can search a solution ?
Thanks,
-- 
Laurent Hugé.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-04 18:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-04  9:07 Call of tty->driver.write provides segmentation fault Laurent Hugé
2003-09-04  9:52 ` Russell King
2003-09-04 11:35   ` Laurent Hugé
2003-09-04 11:41     ` Russell King
2003-09-04 18:49       ` Re : " Laurent Hugé

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