Squash commits for public release
This commit is contained in:
24
kernel/include/io/tty/pty_slave.h
Normal file
24
kernel/include/io/tty/pty_slave.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user