Searched refs:CgroupFile (Results 1 – 3 of 3) sorted by relevance
34 using android::cgrouprc::format::CgroupFile;36 static CgroupFile* LoadRcFile() { in LoadRcFile()51 if (file_size < sizeof(CgroupFile)) { in LoadRcFile()56 CgroupFile* file_data = (CgroupFile*)mmap(nullptr, file_size, PROT_READ, MAP_SHARED, fd, 0); in LoadRcFile()62 if (file_data->version_ != CgroupFile::FILE_CURR_VERSION) { in LoadRcFile()68 auto expected = sizeof(CgroupFile) + file_data->controller_count_ * sizeof(CgroupController); in LoadRcFile()79 static CgroupFile* GetInstance() { in GetInstance()
25 struct CgroupFile { struct
346 format::CgroupFile fl; in WriteRcFile()347 fl.version_ = format::CgroupFile::FILE_CURR_VERSION; in WriteRcFile()