HomeSort by relevance Sort by last modified time
    Searched refs:Uevent (Results 1 - 10 of 10) sorted by null

  /system/core/init/
firmware_handler.h 20 #include "uevent.h"
25 void HandleFirmwareEvent(const Uevent& uevent);
uevent_listener.h 28 #include "uevent.h"
40 using ListenerCallback = std::function<ListenerAction(const Uevent&)>;
53 bool ReadUevent(Uevent* uevent) const;
uevent.h 25 struct Uevent {
devices_test.cpp 32 void TestGetSymlinks(const std::string& platform_device, const Uevent& uevent,
44 mkdir_recursive(android::base::Dirname(fake_sys_root.path + uevent.path), 0777, nullptr);
47 result = device_handler_.GetBlockDeviceSymlinks(uevent);
66 Uevent uevent = { local
74 device_handler_tester_.TestGetSymlinks(platform_device, uevent, expected_result);
80 Uevent uevent = { local
92 device_handler_tester_.TestGetSymlinks(platform_device, uevent, expected_result)
97 Uevent uevent = { local
113 Uevent uevent = { local
129 Uevent uevent = { local
140 Uevent uevent = { local
151 Uevent uevent = { local
162 Uevent uevent = { local
173 Uevent uevent = { local
    [all...]
firmware_handler.cpp 39 static void LoadFirmware(const Uevent& uevent, const std::string& root, int fw_fd, size_t fw_size,
47 PLOG(ERROR) << "firmware: sendfile failed { '" << root << "', '" << uevent.firmware
60 static void ProcessFirmwareEvent(const Uevent& uevent) {
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
    [all...]
init_first_stage.cpp 36 #include "uevent.h"
63 virtual ListenerAction UeventCallback(const Uevent& uevent);
96 ListenerAction UeventCallback(const Uevent& uevent) override;
154 // Creates devices with uevent->partition_name matching one in the member variable
165 auto dm_callback = [this, &dm_path, &found](const Uevent& uevent) {
166 if (uevent.path == dm_path) {
167 device_handler_.HandleDeviceEvent(uevent);
    [all...]
devices.h 30 #include "uevent.h"
76 // Returns the full path for a uevent of a device that is a member of this subsystem,
78 std::string ParseDevPath(const Uevent& uevent) const {
80 ? uevent.device_name
81 : android::base::Basename(uevent.path);
109 void HandleDeviceEvent(const Uevent& uevent);
111 std::vector<std::string> GetBlockDeviceSymlinks(const Uevent& uevent) const
    [all...]
ueventd.cpp 43 // At a high level, ueventd listens for uevent messages generated by the kernel through a netlink
51 // /sys and writing 'add' to each 'uevent' file that it finds. This causes the kernel to generate
52 // and resend uevent messages for all of the currently registered devices. This is done, because
54 // to receive their uevent messages and handle them appropriately. This process is known as
62 // Handling of uevent messages has two unique properties:
65 // that no file system operations are done while the uevent process has an abnormal egid or
74 // device when its uevent is handled, results in multiple restorecon operations being done on a
76 // than to do restorecon on each device as its uevent is handled. This only applies to cold boot;
77 // once that has completed, restorecon is done for each device as its uevent is handled.
83 // 2) ueventd forks 'n' separate uevent handler subprocesses and has each of them to handle th
133 auto& uevent = uevent_queue_[i]; local
    [all...]
uevent_listener.cpp 27 #include <cutils/uevent.h>
32 static void ParseEvent(const char* msg, Uevent* uevent) {
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()
136 Uevent uevent; local
211 Uevent uevent; local
    [all...]
devices.cpp 299 std::vector<std::string> DeviceHandler::GetBlockDeviceSymlinks(const Uevent& uevent) const {
303 if (FindPlatformDevice(uevent.path, &device)) {
315 } else if (FindPciDevicePrefix(uevent.path, &device)) {
317 } else if (FindVbdDevicePrefix(uevent.path, &device)) {
329 if (!uevent.partition_name.empty()) {
330 std::string partition_name_sanitized(uevent.partition_name);
332 if (partition_name_sanitized != uevent.partition_name) {
333 LOG(VERBOSE) << "Linking partition '" << uevent.partition_name << "' as '"
339 if (uevent.partition_num >= 0)
    [all...]

Completed in 124 milliseconds