Searched refs:sdev (Results 1 – 2 of 2) sorted by relevance
/AliOS-Things-master/components/drivers/core/base/devicevfs/src/ |
A D | device_vfs_core.c | 660 sdev = &dev_n->dev; in _device_vfs_open() 671 sdev = &dev_n->dev; in _device_vfs_open() 674 if (sdev->delay_init) { in _device_vfs_open() 730 if (!sfops || !sdev || !sdev->node_name) { in aos_dev_reg_with_flag() 731 … ddkc_err("invalid sfops:%p, sdev:%p or name:%p\r\n", sfops, sdev, sdev ? sdev->node_name : NULL); in aos_dev_reg_with_flag() 824 if (sdev->delay_init) { in aos_dev_reg_with_flag() 850 strncpy(p, sdev->node_name, strlen(sdev->node_name) + 1); in aos_dev_reg_with_flag() 853 memcpy(&dev_n->dev, sdev, sizeof(*sdev)); in aos_dev_reg_with_flag() 855 strncpy(dev_n->dev.node_name, sdev->node_name, strlen(sdev->node_name)); in aos_dev_reg_with_flag() 1020 strncpy(p, sdev->node_name, strlen(sdev->node_name)); in aos_dev_unreg() [all …]
|
/AliOS-Things-master/components/drivers/core/base/include/devicevfs/ |
A D | devicevfs.h | 100 int aos_dev_reg(struct subsys_dev *sdev, subsys_file_ops_t *sfops, struct subsys_drv* sdrv); 113 int aos_remote_dev_reg(struct subsys_dev *sdev, subsys_file_ops_t *sfops, struct subsys_drv* sdrv); 127 int aos_devs_reg(struct subsys_dev *sdev[], int size, subsys_file_ops_t *sfops, struct subsys_drv* … 136 int aos_dev_unreg(struct subsys_dev *sdev); 146 int aos_devs_unreg(struct subsys_dev *sdev[], int size);
|
Completed in 9 milliseconds