All of lore.kernel.org
 help / color / mirror / Atom feed
From: rketcham <Rich.Ketcham@gmail.com>
To: linux-ppp@vger.kernel.org
Subject: Re: PPPd ioctl, please help!
Date: Fri, 09 May 2008 18:34:08 +0000	[thread overview]
Message-ID: <17154119.post@talk.nabble.com> (raw)
In-Reply-To: <17153241.post@talk.nabble.com>


Hey James,

Yea, this SPI driver was my first adventure into linux drivers so I may need
you to lead me through some of this. When I first started I thought that a
char driver would be exactly what I needed. Now it seems that I should have
created a tty driver instead but I would rather try to get around that if
it's possible and not too hard.

Given my limited experience in driver design would you recommend rewriting
the driver as a tty driver (I'm guessing this would involve interfacing with
tty_io.c) or is there another way? I was hoping to handle the ioctl myself.
Would I need to include if_ppp.h?

Thanks,
Rich



James Carlson-2 wrote:
> 
> That last one looks to me like PPPIOCGCHAN.  You're getting this
> because the TIOCSETD ioctl before it didn't set N_PPP mode.
> 
> Did you implement your new device on tty_io.c, or did you just break
> out in your own direction?  If it's the latter (which is consistent
> with your other problems with ioctls), you might want to reconsider
> doing that.
> 
> But if not, then read through the tty subsystem and figure out what
> TIOCSETD does.  You need to do the same.
> 
> -- 
> James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

-- 
View this message in context: http://www.nabble.com/PPPd-ioctl%2C-please-help%21-tp17153241p17154119.html
Sent from the linux-ppp mailing list archive at Nabble.com.


  parent reply	other threads:[~2008-05-09 18:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09 17:56 PPPd ioctl, please help! rketcham
2008-05-09 18:06 ` James Carlson
2008-05-09 18:34 ` rketcham [this message]
2008-05-09 19:33 ` James Carlson

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=17154119.post@talk.nabble.com \
    --to=rich.ketcham@gmail.com \
    --cc=linux-ppp@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.