Home
last modified time | relevance | path

Searched refs:g_serialFilep (Results 1 – 1 of 1) sorted by relevance

/kernel/liteos_a/kernel/common/
Dvirtual_serial.c43 STATIC struct file g_serialFilep; variable
229 (VOID)memset_s(&g_serialFilep, sizeof(struct file), 0, sizeof(struct file)); in virtual_serial_init()
230 g_serialFilep.f_oflags = O_RDWR; in virtual_serial_init()
231 g_serialFilep.f_vnode = vnode; in virtual_serial_init()
232 g_serialFilep.ops = ((struct drv_data *)vnode->data)->ops; in virtual_serial_init()
234 if (g_serialFilep.ops->open != NULL) { in virtual_serial_init()
235 (VOID)g_serialFilep.ops->open(&g_serialFilep); in virtual_serial_init()
241 (VOID)register_driver(SERIAL, &g_serialDevOps, DEFFILEMODE, &g_serialFilep); in virtual_serial_init()