ps_strings
if (ps_strings == NULL) {
ps_strings = (struct ps_strings *)ul_ps_strings;
if (ps_strings->ps_argvstr) {
oargc = ps_strings->ps_nargvstr;
oargv = ps_strings->ps_argvstr;
ps_strings->ps_nargvstr = nargc;
ps_strings->ps_argvstr = nargvp;
static struct ps_strings *ps_strings;
ps_str_a(struct ps_strings *p, u_long *addr, int *n)
ps_str_e(struct ps_strings *p, u_long *addr, int *n)
void (*info)(struct ps_strings *, u_long *, int *))
static struct ps_strings arginfo;
static u_long ps_strings;
if (ps_strings == 0) {
len = sizeof(ps_strings);
if (sysctlbyname("kern.ps_strings", &ps_strings, &len, NULL,
ps_strings = PS_STRINGS;
kvm_uread(kd, kp->kp_pid, ps_strings, (char *)&arginfo,
struct ps_strings *arginfo;
arginfo = (struct ps_strings *)PS_STRINGS;
imgp->ps_strings = 0;
imgp->ps_strings);
__read_mostly static u_long ps_strings = PS_STRINGS;
SYSCTL_ULONG(_kern, KERN_PS_STRINGS, ps_strings, CTLFLAG_RD, &ps_strings, 0, "");
exec_setregs(u_long entry, u_long stack, u_long ps_strings)
regs->tf_rbx = ps_strings;
exec_setregs(u_long entry, u_long stack, u_long ps_strings)
regs->tf_rbx = ps_strings;
#define PS_STRINGS (USRSTACK - sizeof(struct ps_strings))
unsigned long ps_strings; /* PS_STRINGS for BSD/OS binaries */
struct ps_strings pstr;