bootargs
CTASSERT(sizeof (struct bootargs) == BOOTARGS_SIZE);
CTASSERT(offsetof(struct bootargs, bootinfo) == BA_BOOTINFO);
CTASSERT(offsetof(struct bootargs, bootflags) == BA_BOOTFLAGS);
struct bootargs *kargs;
char bootargs[MAXVALSIZE];
(void) strlcpy(bootargs, opp->oprom_array, MAXVALSIZE);
(void) printf("%s=%s %s\n", var, opp->oprom_array, bootargs);
zone_bootup(zlog_t *zlogp, const char *bootargs, int zstate)
err = filter_bootargs(zlogp, bootargs, nbootargs, init_file,
char bootargs[BOOTARGS_MAX];
if (zonecfg_get_bootargs(handle, bootargs, sizeof (bootargs)) == Z_OK &&
strlen(bootargs) > 0) {
pt_to_str(PT_BOOTARGS), bootargs);
char bootargs[BOOTARGS_MAX];
if ((err = zonecfg_get_bootargs(handle, bootargs,
sizeof (bootargs))) == Z_OK) {
bootargs);
reboot(int howto, char *bootargs)
return (uadmin(cmd, fcn, (uintptr_t)bootargs));
static char bootargs[OBP_MAXPATHLEN];
if (bootargs[0] != (char)0)
return (bootargs);
(void) prom_bounded_getprop(node, name, bootargs, length);
return (bootargs);
reboot(int howto, char *bootargs)
char *bootargs = NULL;
bootargs = kmem_zalloc(BOOTARGS_MAX, KM_SLEEP);
if ((error = copyinstr((const char *)mdep, bootargs,
kmem_free(bootargs, BOOTARGS_MAX);
error = zone_kadmin(cmd, fcn, bootargs, credp);
error = kadmin(cmd, fcn, bootargs, credp);
if (bootargs != NULL)
kmem_free(bootargs, BOOTARGS_MAX);
char *bootargs)
bcopy(mdep, bootargs, strlen(mdep));
bcopy(kern_bootfile, bootargs, off);
bcopy(" ", &bootargs[off++], 1);
bcopy(mdep, &bootargs[off], strlen(mdep));
bootargs[off] = '\0';