#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/eventhandler.h>
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/sx.h>
#include <sys/vnode.h>
#include <fs/devfs/devfs.h>
#include <fs/devfs/devfs_int.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
static int | cttyopen (struct cdev *dev, int flag, int mode, struct thread *td) |
|
static void | ctty_clone (void *arg, struct ucred *cred, char *name, int namelen, struct cdev **dev) |
|
static void | ctty_drvinit (void *unused) |
|
| SYSINIT (cttydev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, ctty_drvinit, NULL) |
|
◆ __FBSDID()
◆ ctty_clone()
static void ctty_clone |
( |
void * |
arg, |
|
|
struct ucred * |
cred, |
|
|
char * |
name, |
|
|
int |
namelen, |
|
|
struct cdev ** |
dev |
|
) |
| |
|
static |
◆ ctty_drvinit()
static void ctty_drvinit |
( |
void * |
unused | ) |
|
|
static |
◆ cttyopen()
static int cttyopen |
( |
struct cdev * |
dev, |
|
|
int |
flag, |
|
|
int |
mode, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ SYSINIT()
SYSINIT |
( |
cttydev |
, |
|
|
SI_SUB_DRIVERS |
, |
|
|
SI_ORDER_MIDDLE |
, |
|
|
ctty_drvinit |
, |
|
|
NULL |
|
|
) |
| |
◆ ctty
◆ ctty_cdevsw
struct cdevsw ctty_cdevsw |
|
static |
Initial value:= {
.d_version = D_VERSION,
.d_name = "ctty",
}
Definition at line 45 of file tty_tty.c.
Referenced by ctty_drvinit().
◆ cttyopen