1 /* 2 * Copyright (c) 2006-2023, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2023-12-02 Shell init ver. 9 */ 10 #ifndef __FS_PTYFS_H__ 11 #define __FS_PTYFS_H__ 12 #include <rtthread.h> 13 14 typedef rt_base_t ptsno_t; 15 16 ptsno_t ptyfs_register_pts(rt_device_t ptmx, rt_device_t pts); 17 18 rt_err_t ptyfs_unregister_pts(rt_device_t ptmx, ptsno_t ptsno); 19 20 const char *ptyfs_get_rootpath(rt_device_t ptmx); 21 22 #endif /* __FS_PTYFS_H__ */ 23