Lines Matching defs:rlimit
168 struct rlimit* rlimit);
170 int which, struct rlimit* rlimit);
172 struct rlimit* rlimit);
2140 struct rlimit* rlimit)
2156 offset = (unsigned long)proc.p_limit + sizeof(struct rlimit) * which;
2157 if (!kvm_read_all(kd, offset, rlimit, sizeof(*rlimit))) {
2158 warnx("can't read rlimit struct at %p for pid %d",
2166 procstat_getrlimit_sysctl(pid_t pid, int which, struct rlimit* rlimit)
2176 len = sizeof(struct rlimit);
2177 error = sysctl(name, nitems(name), rlimit, &len, NULL, 0);
2179 warn("sysctl: kern.proc.rlimit: %d", pid);
2182 if (error < 0 || len != sizeof(struct rlimit))
2189 struct rlimit* rlimit)
2192 struct rlimit* rlimits;
2202 if (len < sizeof(struct rlimit) * RLIM_NLIMITS) {
2206 *rlimit = rlimits[which];
2213 struct rlimit* rlimit)
2218 rlimit));
2220 return (procstat_getrlimit_sysctl(kp->ki_pid, which, rlimit));
2222 return (procstat_getrlimit_core(procstat->core, which, rlimit));