Home
last modified time | relevance | path

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

/third_party/NuttX/fs/driver/
Dfs_blockproxy.c156 char *chardev; in block_proxy() local
166 chardev = unique_chardev(); in block_proxy()
167 if (chardev == NULL) in block_proxy()
180 ret = bchdev_register(blkdev, chardev, readonly); in block_proxy()
183 PRINTK("ERROR: bchdev_register(%s, %s) failed: %d\n", blkdev, chardev, ret); in block_proxy()
190 fd = open(chardev, oflags); in block_proxy()
194 PRINTK("ERROR: Failed to open %s: %d\n", chardev, ret); in block_proxy()
215 (void)free(chardev); in block_proxy()
220 (void)unregister_driver(chardev); in block_proxy()
222 (void)free(chardev); in block_proxy()
/third_party/NuttX/drivers/bch/
Dbchdev_unregister.c49 int bchdev_unregister(const char *chardev) in bchdev_unregister() argument
57 if (!chardev) in bchdev_unregister()
64 fd = open(chardev, O_RDONLY); in bchdev_unregister()
67 _err("ERROR: Failed to open %s: %d\n", chardev, errno); in bchdev_unregister()
104 ret = unregister_driver(chardev); in bchdev_unregister()
Dbchdev_register.c42 int bchdev_register(const char *blkdev, const char *chardev, in bchdev_register() argument
59 ret = register_driver(chardev, &bch_fops, 0666, handle); in bchdev_register()