Home
last modified time | relevance | path

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

/base/msdp/device_status/services/device_manager/src/
Denumerator.cpp54 const std::string devNode { dent->d_name }; in ScanAndAddDevices() local
55 const std::string devPath { DEV_INPUT_PATH + devNode }; in ScanAndAddDevices()
64 AddDevice(devNode); in ScanAndAddDevices()
70 void Enumerator::AddDevice(const std::string &devNode) const in AddDevice()
74 devMgr_->AddDevice(devNode); in AddDevice()
Dmonitor.cpp148 std::string devNode { event->name }; in HandleInotifyEvent() local
151 AddDevice(devNode); in HandleInotifyEvent()
153 RemoveDevice(devNode); in HandleInotifyEvent()
157 void Monitor::AddDevice(const std::string &devNode) const in AddDevice()
161 devMgr_->AddDevice(devNode); in AddDevice()
164 void Monitor::RemoveDevice(const std::string &devNode) const in RemoveDevice()
168 devMgr_->RemoveDevice(devNode); in RemoveDevice()
Ddevice_manager.cpp48 void DeviceManager::HotplugHandler::AddDevice(const std::string &devNode) in AddDevice() argument
50 devMgr_.AddDevice(devNode); in AddDevice()
53 void DeviceManager::HotplugHandler::RemoveDevice(const std::string &devNode) in RemoveDevice() argument
55 devMgr_.RemoveDevice(devNode); in RemoveDevice()
154 int32_t DeviceManager::ParseDeviceId(const std::string &devNode) in ParseDeviceId() argument
160 if (std::regex_match(devNode, mr, pattern)) { in ParseDeviceId()
168 std::shared_ptr<IDevice> DeviceManager::AddDevice(const std::string &devNode) in AddDevice() argument
172 const std::string devPath { DEV_INPUT_PATH + devNode }; in AddDevice()
184 int32_t deviceId = ParseDeviceId(devNode); in AddDevice()
186 FI_HILOGE("Parsing device name failed:%{public}s", devNode.c_str()); in AddDevice()
[all …]
/base/startup/init/ueventd/lite/
Dueventd_parameter.c19 int SetUeventDeviceParameter(const char *devNode, int action) in SetUeventDeviceParameter() argument
21 (void)(devNode); in SetUeventDeviceParameter()
/base/msdp/device_status/services/device_manager/include/
Di_device_mgr.h24 virtual void AddDevice(const std::string &devNode) = 0;
25 virtual void RemoveDevice(const std::string &devNode) = 0;
Ddevice_manager.h59 void AddDevice(const std::string &devNode) override;
60 void RemoveDevice(const std::string &devNode) override;
71 int32_t ParseDeviceId(const std::string &devNode);
83 std::shared_ptr<IDevice> AddDevice(const std::string &devNode);
84 std::shared_ptr<IDevice> RemoveDevice(const std::string &devNode);
Dmonitor.h50 void AddDevice(const std::string &devNode) const;
51 void RemoveDevice(const std::string &devNode) const;
Denumerator.h39 void AddDevice(const std::string &devNode) const;
/base/startup/init/ueventd/include/
Dueventd_read_cfg.h56 int GetDeviceNodePermissions(const char *devNode, uid_t *uid, gid_t *gid, mode_t *mode);
59 struct DeviceUdevConf *GetDeviceUdevConfByDevNode(const char *devNode);
Dueventd_parameter.h24 int SetUeventDeviceParameter(const char *devNode, int action);
/base/startup/init/ueventd/standard/
Dueventd_parameter.c120 int SetUeventDeviceParameter(const char *devNode, int action) in SetUeventDeviceParameter() argument
122 if (devNode == NULL) { in SetUeventDeviceParameter()
125 struct DeviceUdevConf *config = GetDeviceUdevConfByDevNode(devNode); in SetUeventDeviceParameter()
/base/startup/init/ueventd/
Dueventd_read_cfg.c325 struct DeviceUdevConf *GetDeviceUdevConfByDevNode(const char *devNode) in GetDeviceUdevConfByDevNode() argument
327 if (INVALIDSTRING(devNode)) { in GetDeviceUdevConfByDevNode()
335 if (IsMatch(devNode, config->name)) { in GetDeviceUdevConfByDevNode()
344 int GetDeviceNodePermissions(const char *devNode, uid_t *uid, gid_t *gid, mode_t *mode) in GetDeviceNodePermissions() argument
346 if (INVALIDSTRING(devNode)) { in GetDeviceNodePermissions()
354 if (IsMatch(devNode, config->name)) { in GetDeviceNodePermissions()
/base/msdp/device_status/tools/vdev/src/
Dvirtual_device_builder.cpp412 const std::string devNode { dent->d_name }; in ScanFor() local
413 const std::string devPath { DEV_INPUT_PATH + devNode }; in ScanFor()