Home
last modified time | relevance | path

Searched refs:maxid (Results 1 – 12 of 12) sorted by relevance

/freebsd/lib/libutil/
H A Dquotafile.c262 int maxid; in quota_maxid() local
268 maxid = st.st_size / sizeof(struct dqblk32) - 1; in quota_maxid()
271 maxid = st.st_size / sizeof(struct dqblk64) - 2; in quota_maxid()
274 maxid = 0; in quota_maxid()
277 return (maxid > 0 ? maxid : 0); in quota_maxid()
521 int serrno, maxid, id, fd; in quota_convert() local
536 maxid = quota_maxid(qf); in quota_convert()
568 for (id = 0; id <= maxid; id++) { in quota_convert()
585 if (id < maxid) { in quota_convert()
/freebsd/lib/libmemstat/
H A Dmemstat_uma.c83 int count, hint_dontsearch, i, j, maxcpus, maxid; in memstat_sysctl_uma() local
97 size = sizeof(maxid); in memstat_sysctl_uma()
98 if (sysctlbyname("kern.smp.maxid", &maxid, &size, NULL, 0) < 0) { in memstat_sysctl_uma()
105 if (size != sizeof(maxid)) { in memstat_sysctl_uma()
124 (maxid + 1)); in memstat_sysctl_uma()
187 uthp->uth_name, maxid + 1); in memstat_sysctl_uma()
198 _memstat_mt_reset_stats(mtp, maxid + 1); in memstat_sysctl_uma()
/freebsd/usr.bin/vmstat/
H A Dvmstat.c606 int empty, i, j, maxcpu, maxid; in getcpuinfo() local
620 maxid = (size / CPUSTATES / sizeof(long)) - 1; in getcpuinfo()
621 for (i = 0; i <= maxid; i++) { in getcpuinfo()
633 *maxidp = maxid; in getcpuinfo()
645 int maxid, rate_adj, retval; in dovmstat() local
650 maxid = 0; in dovmstat()
688 getcpuinfo(&cpumask, &maxid); in dovmstat()
689 size_cp_times = sizeof(long) * (maxid + 1) * CPUSTATES; in dovmstat()
695 printhdr(maxid, cpumask); in dovmstat()
744 printhdr(maxid, cpumask); in dovmstat()
[all …]
/freebsd/usr.sbin/repquota/
H A Drepquota.c190 u_long id, maxid; in repquota() local
213 maxid = quota_maxid(qf); in repquota()
214 for (id = 0; id <= maxid; id++) { in repquota()
/freebsd/sys/dev/xen/cpu/
H A Dxen_acpi_cpu.c510 unsigned int i, maxid; in is_processor_online() local
519 maxid = op.u.pcpu_info.max_present; in is_processor_online()
520 for (i = 0; i <= maxid; i++) { in is_processor_online()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_subr.c513 int maxid = 0; in dt_status()
514 size_t len = sizeof(maxid); in dt_status()
515 if (sysctlbyname("kern.smp.maxid", &maxid, &len, NULL, 0) != 0) in dt_status()
518 return (cpu <= maxid ? 1 : -1); in dt_status()
/freebsd/usr.bin/top/
H A Dmachine.c204 static int maxid; variable
367 maxid = MIN(size / CPUSTATES / sizeof(long) - 1, CPU_SETSIZE - 1); in machine_init()
369 for (i = 0; i <= maxid; i++) { in machine_init()
463 size = (maxid + 1) * CPUSTATES * sizeof(long); in get_system_info()
475 for (i = j = 0; i <= maxid; i++) { in get_system_info()
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dctf.c1058 caddr_t ctfdata, int maxid) in resurrect_types() argument
1085 if (maxid == 0) { in resurrect_types()
1086 maxid = version == CTF_VERSION_2 ? in resurrect_types()
1095 if (tid > maxid) in resurrect_types()
/freebsd/contrib/bsnmp/gensnmptree/
H A Dgensnmptree.c1307 asn_subid_t maxid = 0; in check_sub_order() local
1312 if (!first && sub->id <= maxid) in check_sub_order()
1314 maxid = sub->id; in check_sub_order()
/freebsd/sys/kern/
H A Dkern_jail.c2178 int jid, maxid; in get_next_prid() local
2194 for (maxid = JAIL_MAX; maxid != 0; ) { in get_next_prid()
2200 maxid = 0; in get_next_prid()
2203 if (++jid > maxid) { in get_next_prid()
2204 if (lastprid == maxid || lastprid == 0) in get_next_prid()
2214 maxid = lastprid; in get_next_prid()
H A Dsubr_smp.c84 SYSCTL_INT(_kern_smp, OID_AUTO, maxid, CTLFLAG_RD|CTLFLAG_CAPRD, &mp_maxid, 0,
/freebsd/tools/tools/ath/athprom/
H A Dathprom.c226 token(FILE *fd, char id[], int maxid, const char *what) in token() argument
239 if (i == maxid-1) { in token()