Home
last modified time | relevance | path

Searched refs:ZRAM_BACK_DEV (Results 1 – 2 of 2) sorted by relevance

/aosp12/system/core/init/
H A Dreboot.cpp455 #define ZRAM_BACK_DEV "/sys/block/zram0/backing_dev" macro
469 if (access(ZRAM_BACK_DEV, F_OK) != 0 && errno == ENOENT) { in KillZramBackingDevice()
474 if (!android::base::ReadFileToString(ZRAM_BACK_DEV, &backing_dev)) { in KillZramBackingDevice()
475 return ErrnoError() << "Failed to read " << ZRAM_BACK_DEV; in KillZramBackingDevice()
/aosp12/system/core/fs_mgr/
H A Dfs_mgr.cpp89 #define ZRAM_BACK_DEV "/sys/block/zram0/backing_dev" macro
2043 if (!android::base::WriteStringToFile(device, ZRAM_BACK_DEV)) { in InstallZramDevice()
2044 PERROR << "Cannot write " << device << " in: " << ZRAM_BACK_DEV; in InstallZramDevice()
2047 LINFO << "Success to set " << device << " to " << ZRAM_BACK_DEV; in InstallZramDevice()