mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Laurent Hugé" <laurent.huge@wanadoo.fr>
To: linux-kernel@vger.kernel.org
Subject: Call of tty->driver.write provides segmentation fault
Date: Thu, 4 Sep 2003 11:07:11 +0200	[thread overview]
Message-ID: <200309041107.12393.laurent.huge@wanadoo.fr> (raw)

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é.


             reply	other threads:[~2003-09-04  9:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-04  9:07 Laurent Hugé [this message]
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é

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200309041107.12393.laurent.huge@wanadoo.fr \
    --to=laurent.huge@wanadoo.fr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®