|
STATIC UINT32 | ConsoleSendTask (UINTPTR param) |
| 控制台发送任务 更多...
|
|
STATIC | SPIN_LOCK_INIT (g_consoleSpin) |
| 初始化控制台自旋锁 更多...
|
|
STATIC | SPIN_LOCK_INIT (g_consoleWriteSpinLock) |
|
INT32 | GetFilepOps (const struct file *filep, struct file **privFilep, const struct file_operations_vfs **filepOps) |
|
INT32 | ConsoleTcGetAttr (INT32 fd, struct termios *termios) |
| 获取控制台 模式值 更多...
|
|
INT32 | ConsoleTcSetAttr (INT32 fd, INT32 actions, const struct termios *termios) |
| 设置控制台 模式值 更多...
|
|
STATIC UINT32 | ConsoleRefcountGet (const CONSOLE_CB *consoleCB) |
|
STATIC VOID | ConsoleRefcountSet (CONSOLE_CB *consoleCB, BOOL flag) |
| 设置控制台引用次数,也表示占用控制台的数量 更多...
|
|
BOOL | IsConsoleOccupied (const CONSOLE_CB *consoleCB) |
| 控制台是否被占用 更多...
|
|
STATIC INT32 | ConsoleCtrlCaptureLine (CONSOLE_CB *consoleCB) |
| 铺捉到 ctrl + 字符, 例如 ctrl + c 更多...
|
|
STATIC INT32 | ConsoleCtrlCaptureChar (CONSOLE_CB *consoleCB) |
| 铺捉到 ctrl + 右方向键(>) 更多...
|
|
STATIC INT32 | ConsoleCtrlRightsCapture (CONSOLE_CB *consoleCB) |
|
STATIC INT32 | ConsoleCtrlRightsRelease (CONSOLE_CB *consoleCB) |
|
STATIC CONSOLE_CB * | OsGetConsoleByDevice (const CHAR *deviceName) |
|
STATIC INT32 | OsGetConsoleID (const CHAR *deviceName) |
| 获取控制台ID,(/dev/console1 = SERIAL, /dev/console2 = telnet) 更多...
|
|
STATIC INT32 | OsConsoleFullpathToID (const CHAR *fullpath) |
| 通过路径找到控制台ID 更多...
|
|
STATIC BOOL | ConsoleFifoEmpty (const CONSOLE_CB *console) |
|
STATIC VOID | ConsoleFifoClearup (CONSOLE_CB *console) |
|
STATIC VOID | ConsoleFifoLenUpdate (CONSOLE_CB *console) |
| 控制台buf长度更新 更多...
|
|
STATIC INT32 | ConsoleReadFifo (CHAR *buffer, CONSOLE_CB *console, size_t bufLen) |
| 读取 更多...
|
|
INT32 | FilepOpen (struct file *filep, const struct file_operations_vfs *fops) |
| 打开串口或远程登录 更多...
|
|
STATIC INLINE VOID | UserEndOfRead (CONSOLE_CB *consoleCB, struct file *filep, const struct file_operations_vfs *fops) |
| 向控制台buf中写入结束字符 更多...
|
|
STATIC INT32 | UserShellCheckUDRL (const CHAR ch, INT32 *lastTokenType) |
| 用户shell检查上下左右键 更多...
|
|
STATIC INT32 | IsNeedContinue (CONSOLE_CB *consoleCB, char ch, INT32 *lastTokenType) |
| 是否需要继续 更多...
|
|
STATIC VOID | EchoToTerminal (CONSOLE_CB *consoleCB, struct file *filep, const struct file_operations_vfs *fops, char ch) |
| 输出到终端 更多...
|
|
STATIC VOID | StoreReadChar (CONSOLE_CB *consoleCB, char ch, INT32 readcount) |
| 存储读取的字符 更多...
|
|
VOID | KillPgrp (UINT16 consoleId) |
| 杀死进程组 更多...
|
|
STATIC INT32 | UserFilepRead (CONSOLE_CB *consoleCB, struct file *filep, const struct file_operations_vfs *fops, CHAR *buffer, size_t bufLen) |
| 使用参数buffer将控制台的buf接走 更多...
|
|
INT32 | FilepRead (struct file *filep, const struct file_operations_vfs *fops, CHAR *buffer, size_t bufLen) |
| 从串口或远程登录中读数据 更多...
|
|
INT32 | FilepWrite (struct file *filep, const struct file_operations_vfs *fops, const CHAR *buffer, size_t bufLen) |
| 写数据到串口或远程登录 更多...
|
|
INT32 | FilepClose (struct file *filep, const struct file_operations_vfs *fops) |
| 关闭串口或远程登录 更多...
|
|
INT32 | FilepIoctl (struct file *filep, const struct file_operations_vfs *fops, INT32 cmd, unsigned long arg) |
|
INT32 | FilepPoll (struct file *filep, const struct file_operations_vfs *fops, poll_table *fds) |
|
STATIC INT32 | ConsoleOpen (struct file *filep) |
| 对 file_operations_vfs->open 的实现函数,也就是说这是 打开控制台的实体函数. 更多...
|
|
STATIC INT32 | ConsoleClose (struct file *filep) |
| 关闭控制台 更多...
|
|
STATIC ssize_t | DoRead (CONSOLE_CB *consoleCB, CHAR *buffer, size_t bufLen, struct file *privFilep, const struct file_operations_vfs *fileOps) |
|
STATIC ssize_t | ConsoleRead (struct file *filep, CHAR *buffer, size_t bufLen) |
| 任务从控制台读数据,例如 Shell Entry 任务会从此读数据 更多...
|
|
STATIC ssize_t | DoWrite (CirBufSendCB *cirBufSendCB, CHAR *buffer, size_t bufLen) |
|
STATIC ssize_t | ConsoleWrite (struct file *filep, const CHAR *buffer, size_t bufLen) |
| 用户任务写数据到控制台 更多...
|
|
STATIC INT32 | ConsoleSetSW (CONSOLE_CB *consoleCB, unsigned long arg) |
|
STATIC INT32 | ConsoleGetWinSize (unsigned long arg) |
|
STATIC INT32 | ConsoleGetTermios (unsigned long arg) |
|
INT32 | ConsoleSetPgrp (CONSOLE_CB *consoleCB, unsigned long arg) |
|
INT32 | ConsoleGetPgrp (CONSOLE_CB *consoleCB, unsigned long arg) |
| 对控制台i/o操作 更多...
|
|
STATIC INT32 | ConsoleIoctl (struct file *filep, INT32 cmd, unsigned long arg) |
|
STATIC INT32 | ConsolePoll (struct file *filep, poll_table *fds) |
|
STATIC VOID | OsConsoleTermiosInit (CONSOLE_CB *consoleCB, const CHAR *deviceName) |
| termios 结构是在POSIX规范中定义的标准接口,它类似于系统V中的termio接口, 通过设置termios类型的数据结构中的值和使用一小组函数调用,你就可以对终端接口进行控制。 更多...
|
|
STATIC INT32 | OsConsoleFileInit (CONSOLE_CB *consoleCB) |
| 控制台文件实例初始化 更多...
|
|
STATIC INT32 | OsConsoleDevInit (CONSOLE_CB *consoleCB, const CHAR *deviceName) |
|
STATIC UINT32 | OsConsoleDevDeinit (const CONSOLE_CB *consoleCB) |
| 注销控制台设备 更多...
|
|
STATIC CirBufSendCB * | ConsoleCirBufCreate (VOID) |
| 创建一个控制台循环buf 更多...
|
|
STATIC VOID | ConsoleCirBufDelete (CirBufSendCB *cirBufSendCB) |
| 删除循环buf 更多...
|
|
STATIC UINT32 | OsConsoleBufInit (CONSOLE_CB *consoleCB) |
| 控制台缓存初始化,创建一个 发送任务 更多...
|
|
STATIC VOID | OsConsoleBufDeinit (CONSOLE_CB *consoleCB) |
| 控制台buf去初始化 更多...
|
|
STATIC CONSOLE_CB * | OsConsoleCBInit (UINT32 consoleID) |
| 控制台描述符初始化 更多...
|
|
STATIC VOID | OsConsoleCBDeinit (CONSOLE_CB *consoleCB) |
| 释放控制台描述符初始化时所占用的内核空间 更多...
|
|
STATIC CONSOLE_CB * | OsConsoleCreate (UINT32 consoleID, const CHAR *deviceName) |
| 创建一个控制台,这个函数的goto语句贼多 更多...
|
|
STATIC UINT32 | OsConsoleDelete (CONSOLE_CB *consoleCB) |
| 删除控制台 更多...
|
|
INT32 | system_console_init (const CHAR *deviceName) |
| 初始化系统控制台并返回 stdinfd stdoutfd stderrfd ,和system_console_deinit成对出现,像控制台的构造函数 更多...
|
|
INT32 | system_console_deinit (const CHAR *deviceName) |
| 控制台结束前的处理 和 system_console_init成对出现,像控制台的析构函数 更多...
|
|
BOOL | ConsoleEnable (VOID) |
| 控制台使能 更多...
|
|
BOOL | IsShellEntryRunning (UINT32 shellEntryId) |
|
INT32 | ConsoleTaskReg (INT32 consoleID, UINT32 taskID) |
| 任务注册控制台,每个shell任务都有属于自己的控制台 更多...
|
|
BOOL | SetSerialNonBlock (const CONSOLE_CB *consoleCB) |
| 无锁方式设置串口 更多...
|
|
BOOL | SetSerialBlock (const CONSOLE_CB *consoleCB) |
| 锁方式设置串口 更多...
|
|
BOOL | SetTelnetNonBlock (const CONSOLE_CB *consoleCB) |
| 无锁方式设置远程登录 更多...
|
|
BOOL | SetTelnetBlock (const CONSOLE_CB *consoleCB) |
| 锁方式设置远程登录 更多...
|
|
BOOL | is_nonblock (const CONSOLE_CB *consoleCB) |
|
INT32 | ConsoleUpdateFd (VOID) |
| 控制台更新文件句柄 更多...
|
|
CONSOLE_CB * | OsGetConsoleByID (INT32 consoleID) |
| 获取参数控制台ID 获取对应的控制台控制块(描述符) 更多...
|
|
CONSOLE_CB * | OsGetConsoleByTaskID (UINT32 taskID) |
| 获取参数任务的控制台控制块(描述符) 更多...
|
|
VOID | OsSetConsoleID (UINT32 newTaskID, UINT32 curTaskID) |
| 设置控制台ID 更多...
|
|
STATIC ssize_t | WriteToTerminal (const CONSOLE_CB *consoleCB, const CHAR *buffer, size_t bufLen) |
| 将buf内容写到终端设备 更多...
|
|
VOID | OsWaitConsoleSendTaskPend (UINT32 taskID) |
|
VOID | OsWakeConsoleSendTask (VOID) |
| 唤醒控制台发送任务 更多...
|
|