From: Shaya Potter <spotter@cs.columbia.edu>
To: linux-kernel@vger.kernel.org
Subject: understanding devpts_pty_new/kill
Date: 18 Oct 2002 11:59:08 -0400 [thread overview]
Message-ID: <1034956748.2256.62.camel@zaphod> (raw)
I'm trying to understand how the path those functions take to be called.
>From a basic understanding, is that we register f_ops for tty's and
ptys. So we register tty_open for tty's which includes ptmx.
therefore when we open ptmx, tty_open gets called, we do the code for
PTMX, which calls devpts_pty_new() which creates the appropriate
enteries in /dev/pts. These f_ops are registered in chrdevs struct
(from fs/devices.c)
I'm a little more hazy on devpts_pty_kill. That seems to similiar
(except it's in pty_close, in pty.c) which is part of a much larger "tty
driver" structure and is the "close" member of that structure. This
structure is then registered. Then basically, it's also registered w/
tty_fops, but tty_release calls tty->driver.close.
Is this a correct understanding, or is there more going on behind the
scenes?
thanks,
shaya potter
reply other threads:[~2002-10-18 15:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1034956748.2256.62.camel@zaphod \
--to=spotter@cs.columbia.edu \
--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