Home
last modified time | relevance | path

Searched refs:proc_attr_ (Results 1 – 3 of 3) sorted by relevance

/system/core/init/
Dservice.cpp148 proc_attr_{.ioprio_class = IoSchedClass_NONE,
201 r = killProcessGroupOnce(proc_attr_.uid, pid_, signal, &max_processes); in KillProcessGroup()
203 r = killProcessGroup(proc_attr_.uid, pid_, signal, &max_processes); in KillProcessGroup()
224 if (capabilities_ && proc_attr_.uid) { in SetProcessAttributesAndCaps()
237 if (auto result = SetProcessAttributes(proc_attr_); !result.ok()) { in SetProcessAttributesAndCaps()
251 } else if (proc_attr_.uid) { in SetProcessAttributesAndCaps()
386 LOG(INFO) << "SVC_EXEC service '" << name_ << "' pid " << pid_ << " (uid " << proc_attr_.uid in ExecStart()
387 << " gid " << proc_attr_.gid << "+" << proc_attr_.supp_gids.size() << " context " in ExecStart()
429 if (proc_attr_.console.empty()) { in Start()
430 proc_attr_.console = "/dev/" + GetProperty("ro.boot.console", "console"); in Start()
[all …]
Dservice.h112 uid_t uid() const { return proc_attr_.uid; } in uid()
113 gid_t gid() const { return proc_attr_.gid; } in gid()
115 const std::vector<gid_t>& supp_gids() const { return proc_attr_.supp_gids; } in supp_gids()
118 IoSchedClass ioprio_class() const { return proc_attr_.ioprio_class; } in ioprio_class()
119 int ioprio_pri() const { return proc_attr_.ioprio_pri; } in ioprio_pri()
121 int priority() const { return proc_attr_.priority; } in priority()
160 ProcessAttributes proc_attr_; variable
Dservice_parser.cpp87 if (service_->proc_attr_.stdio_to_kmsg) { in ParseConsole()
91 service_->proc_attr_.console = args.size() > 1 ? "/dev/" + args[1] : ""; in ParseConsole()
125 service_->proc_attr_.gid = *gid; in ParseGroup()
132 service_->proc_attr_.supp_gids.emplace_back(*gid); in ParseGroup()
138 service_->proc_attr_.priority = 0; in ParsePriority()
139 if (!ParseInt(args[1], &service_->proc_attr_.priority, in ParsePriority()
184 if (!ParseInt(args[2], &service_->proc_attr_.ioprio_pri, 0, 7)) { in ParseIoprio()
189 service_->proc_attr_.ioprio_class = IoSchedClass_RT; in ParseIoprio()
191 service_->proc_attr_.ioprio_class = IoSchedClass_BE; in ParseIoprio()
193 service_->proc_attr_.ioprio_class = IoSchedClass_IDLE; in ParseIoprio()
[all …]