Benign freebsd Download

sysctl.h

Source references XOR syntaxSysctl handler function signature
SHA-2568fedd4f974bcf49b67a68e867c2d89a84aa934f229b4fb975d14b3f648102a79

Evidence

imports <sys/cdefs.h> lines 35–46
35:15… YSCTL_H_
36#define _SYS_SYSCTL_H_
37
38#ifdef _KERNEL
39#include <sys/cdefs.h>
40#include <sys/queue.h>
41#include <sys/tree.h>
42#endif
43
44/*
45 * Definitions for sysctl call. The sysctl call uses a hierarchical name
46 * for obj …
Sysctl handler function signature lines 138–147
138:29… K CTLTYPE
139#else
140#define SYSCTL_CT_ASSERT_MASK 0
141#endif
142
143#define SYSCTL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, \
144 intmax_t arg2, struct sysctl_req *req
145
146/* definitions for sysctl_req 'lock' member */
147# …
Source references XOR syntax lines 284–288
284:24… FLAGS(x) \
285 _Static_assert((((x) & CTLFLAG_MPSAFE) != 0) ^ (((x) & CTLFLAG_NEEDGIANT) != 0), \
286 "Has to be either CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT")
287#else
288#define SYSCTL_ENFORCE …
KERN_PROC_PID sysctl reference lines 1027–1032
1027:13… subtypes
1028 */
1029#define KERN_PROC_ALL 0 /* everything */
1030#define KERN_PROC_PID 1 /* by process id */
1031#define KERN_PROC_PGRP 2 /* by process group id */
1032#define KERN_PROC_SESSION 3 /* by session of pid */
C declares a character or byte buffer lines 1176–1186
1176:3… SCTL_DECL(_security);
1177SYSCTL_DECL(_security_bsd);
1178
1179extern const char machine[];
1180extern const char osrelease[];
1181extern const char ostype[];
1182extern const char kern_ident[];
1183
1184/* Dynamic oid handling */
1185struct sysctl_oid *sysctl_add_oid(struct sysctl_ctx_list *clist,
1186 struct sysctl_oid_list *par …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.