24 lines
475 B
C
24 lines
475 B
C
|
|
#ifndef _KERNEL_IO_TTY_PTY_SLAVE_H
|
||
|
|
#define _KERNEL_IO_TTY_PTY_SLAVE_H
|
||
|
|
|
||
|
|
#include <algo/sync_ringbuffer.h>
|
||
|
|
#include <io/tty/tty.h>
|
||
|
|
|
||
|
|
#ifndef PTYS_COUNT
|
||
|
|
#define PTYS_COUNT 4
|
||
|
|
#endif
|
||
|
|
|
||
|
|
struct pty_master_entry;
|
||
|
|
struct pty_slave_entry {
|
||
|
|
int inode_indx;
|
||
|
|
struct pty_master_entry* ptm;
|
||
|
|
|
||
|
|
tty_entry_t tty;
|
||
|
|
};
|
||
|
|
typedef struct pty_slave_entry pty_slave_entry_t;
|
||
|
|
|
||
|
|
extern pty_slave_entry_t pty_slaves[PTYS_COUNT];
|
||
|
|
|
||
|
|
int pty_slave_create(int id, struct pty_master_entry* ptm);
|
||
|
|
|
||
|
|
#endif
|