Lines Matching defs:rlimit
168 struct rlimit* rlimit);
170 int which, struct rlimit* rlimit);
172 struct rlimit* rlimit);
2105 struct rlimit* rlimit)
2121 offset = (unsigned long)proc.p_limit + sizeof(struct rlimit) * which;
2122 if (!kvm_read_all(kd, offset, rlimit, sizeof(*rlimit))) {
2123 warnx("can't read rlimit struct at %p for pid %d",
2131 procstat_getrlimit_sysctl(pid_t pid, int which, struct rlimit* rlimit)
2141 len = sizeof(struct rlimit);
2142 error = sysctl(name, nitems(name), rlimit, &len, NULL, 0);
2144 warn("sysctl: kern.proc.rlimit: %d", pid);
2147 if (error < 0 || len != sizeof(struct rlimit))
2154 struct rlimit* rlimit)
2157 struct rlimit* rlimits;
2167 if (len < sizeof(struct rlimit) * RLIM_NLIMITS) {
2171 *rlimit = rlimits[which];
2177 struct rlimit* rlimit)
2182 rlimit));
2184 return (procstat_getrlimit_sysctl(kp->ki_pid, which, rlimit));
2186 return (procstat_getrlimit_core(procstat->core, which, rlimit));