Searched refs:uevent (Results 1 - 14 of 14) sorted by relevance
/system/core/init/ |
H A D | firmware_handler.h | 20 #include "uevent.h" 25 void HandleFirmwareEvent(const Uevent& uevent);
|
H A D | firmware_handler.cpp | 39 static void LoadFirmware(const Uevent& uevent, const std::string& root, int fw_fd, size_t fw_size, argument 47 PLOG(ERROR) << "firmware: sendfile failed { '" << root << "', '" << uevent.firmware 60 static void ProcessFirmwareEvent(const Uevent& uevent) { argument 63 LOG(INFO) << "firmware: loading '" << uevent.firmware << "' for '" << uevent.path << "'"; 65 std::string root = "/sys" + uevent.path; 71 PLOG(ERROR) << "couldn't open firmware loading fd for " << uevent.firmware; 77 PLOG(ERROR) << "couldn't open firmware data fd for " << uevent.firmware; 86 std::string file = firmware_dirs[i] + uevent.firmware; 90 LoadFirmware(uevent, roo 109 HandleFirmwareEvent(const Uevent& uevent) argument [all...] |
H A D | uevent_listener.cpp | 27 #include <cutils/uevent.h> 32 static void ParseEvent(const char* msg, Uevent* uevent) { argument 33 uevent->partition_num = -1; 34 uevent->major = -1; 35 uevent->minor = -1; 36 uevent->action.clear(); 37 uevent->path.clear(); 38 uevent->subsystem.clear(); 39 uevent->firmware.clear(); 40 uevent 136 Uevent uevent; local 211 Uevent uevent; local [all...] |
H A D | init_first_stage.cpp | 36 #include "uevent.h" 64 virtual ListenerAction UeventCallback(const Uevent& uevent); 97 ListenerAction UeventCallback(const Uevent& uevent) override; 160 // Creates devices with uevent->partition_name matching one in the member variable 171 auto dm_callback = [this, &dm_path, &found](const Uevent& uevent) { 172 if (uevent.path == dm_path) { 173 device_handler_->HandleDeviceEvent(uevent); 181 LOG(INFO) << "device-mapper device not found in /sys, waiting for its uevent"; 192 auto uevent_callback = [this](const Uevent& uevent) { return UeventCallback(uevent); }; 215 HandleBlockDevice(const std::string& name, const Uevent& uevent) argument 233 UeventCallback(const Uevent& uevent) argument 409 UeventCallback(const Uevent& uevent) argument [all...] |
H A D | devices.cpp | 294 std::vector<std::string> DeviceHandler::GetBlockDeviceSymlinks(const Uevent& uevent) const { 298 if (FindPlatformDevice(uevent.path, &device)) { 310 } else if (FindPciDevicePrefix(uevent.path, &device)) { 312 } else if (FindVbdDevicePrefix(uevent.path, &device)) { 324 if (!uevent.partition_name.empty()) { 325 std::string partition_name_sanitized(uevent.partition_name); 327 if (partition_name_sanitized != uevent.partition_name) { 328 LOG(VERBOSE) << "Linking partition '" << uevent.partition_name << "' as '" 338 auto last_slash = uevent.path.rfind('/'); 339 links.emplace_back(link_path + "/" + uevent 376 HandleDeviceEvent(const Uevent& uevent) argument [all...] |
H A D | devices_test.cpp | 32 void TestGetSymlinks(const std::string& platform_device, const Uevent& uevent, argument 44 mkdir_recursive(android::base::Dirname(fake_sys_root.path + uevent.path), 0777); 47 result = device_handler_.GetBlockDeviceSymlinks(uevent); 66 Uevent uevent = { local 74 device_handler_tester_.TestGetSymlinks(platform_device, uevent, expected_result); 80 Uevent uevent = { local 91 device_handler_tester_.TestGetSymlinks(platform_device, uevent, expected_result); 96 Uevent uevent = { local 106 device_handler_tester_.TestGetSymlinks(platform_device, uevent, expected_result); 111 Uevent uevent local 127 Uevent uevent = { local 138 Uevent uevent = { local 149 Uevent uevent = { local 160 Uevent uevent = { local 171 Uevent uevent = { local [all...] |
H A D | ueventd.cpp | 45 // At a high level, ueventd listens for uevent messages generated by the kernel through a netlink 53 // /sys and writing 'add' to each 'uevent' file that it finds. This causes the kernel to generate 54 // and resend uevent messages for all of the currently registered devices. This is done, because 56 // to receive their uevent messages and handle them appropriately. This process is known as 64 // Handling of uevent messages has two unique properties: 67 // that no file system operations are done while the uevent process has an abnormal egid or 76 // device when its uevent is handled, results in multiple restorecon operations being done on a 78 // than to do restorecon on each device as its uevent is handled. This only applies to cold boot; 79 // once that has completed, restorecon is done for each device as its uevent is handled. 85 // 2) ueventd forks 'n' separate uevent handle 135 auto& uevent = uevent_queue_[i]; local [all...] |
H A D | devices.h | 31 #include "uevent.h" 78 // Returns the full path for a uevent of a device that is a member of this subsystem, 80 std::string ParseDevPath(const Uevent& uevent) const { 82 ? uevent.device_name 83 : android::base::Basename(uevent.path); 111 void HandleDeviceEvent(const Uevent& uevent); 113 std::vector<std::string> GetBlockDeviceSymlinks(const Uevent& uevent) const;
|
H A D | uevent_listener.h | 28 #include "uevent.h" 53 bool ReadUevent(Uevent* uevent) const;
|
/system/extras/tests/uevents/ |
H A D | uevents.c | 17 #include <cutils/uevent.h>
|
/system/core/libsysutils/src/ |
H A D | NetlinkListener.cpp | 27 #include <cutils/uevent.h>
|
/system/core/libcutils/ |
H A D | uevent.cpp | 17 #include <cutils/uevent.h>
|
/system/core/healthd/ |
H A D | healthd_mode_charger.cpp | 42 #include <cutils/uevent.h>
|
/system/sepolicy/prebuilts/api/26.0/private/ |
H A D | file_contexts | 457 /sys/devices/virtual/block/zram\d+/uevent u:object_r:sysfs_zram_uevent:s0
|
Completed in 482 milliseconds