Home
last modified time | relevance | path

Searched refs:rootdev (Results 1 – 25 of 27) sorted by relevance

12

/titanic_52/usr/src/boot/sys/boot/i386/libi386/
H A Dbootinfo32.c138 struct i386_devdesc *rootdev; in bi_load32() local
153 * Allow the environment variable 'rootdev' to override the supplied device in bi_load32()
154 * This should perhaps go to MI code and/or have $rootdev tested/set by in bi_load32()
157 rootdevname = getenv("rootdev"); in bi_load32()
158 i386_getdev((void **)(&rootdev), rootdevname, NULL); in bi_load32()
159 if (rootdev == NULL) { /* bad $rootdev/$currdev */ in bi_load32()
165 getrootmount(i386_fmtdev((void *)rootdev)); in bi_load32()
167 /* Do legacy rootdev guessing */ in bi_load32()
172 switch(rootdev in bi_load32()
[all...]
H A Dbootinfo64.c183 struct i386_devdesc *rootdev; in bi_load64() local
200 * Allow the environment variable 'rootdev' to override the supplied device in bi_load64()
201 * This should perhaps go to MI code and/or have $rootdev tested/set by in bi_load64()
204 rootdevname = getenv("rootdev"); in bi_load64()
205 i386_getdev((void **)(&rootdev), rootdevname, NULL); in bi_load64()
206 if (rootdev == NULL) { /* bad $rootdev/$currdev */ in bi_load64()
212 getrootmount(i386_fmtdev((void *)rootdev)); in bi_load64()
H A Dbioscd.c430 int rootdev; in bc_getdev() local
451 rootdev = MAKEBOOTDEV(major, 0, unit, 0); in bc_getdev()
452 DEBUG("dev is 0x%x\n", rootdev); in bc_getdev()
453 return(rootdev); in bc_getdev()
H A Dmultiboot.c255 struct devdesc *rootdev; in multiboot_exec() local
281 i386_getdev((void **)(&rootdev), NULL, NULL); in multiboot_exec()
282 if (rootdev == NULL) { in multiboot_exec()
332 error = mb_kernel_cmdline(mfp, rootdev, &cmdline); in multiboot_exec()
438 if ((error = mb_kernel_cmdline(fp, rootdev, &cmdline)) != 0) in multiboot_exec()
H A Dlinux.c284 struct i386_devdesc *rootdev; in linux_exec() local
293 i386_getdev((void **)(&rootdev), fp->f_name, NULL); in linux_exec()
294 if (rootdev != NULL) in linux_exec()
295 relocator_edx = bd_unit2bios(rootdev->d_unit); in linux_exec()
H A Dbiosdisk.c752 int rootdev; in bd_getdev() local
791 rootdev = MAKEBOOTDEV(major, dev->d_slice + 1, unit, dev->d_partition); in bd_getdev()
792 DEBUG("dev is 0x%x\n", rootdev); in bd_getdev()
793 return(rootdev); in bd_getdev()
/titanic_52/usr/src/cmd/boot/scripts/
H A Dupdate_grub.ksh100 for rootdev in $rootdevlist
102 echo /dev/rdsk/`basename $rootdev`
136 for rootdev in $grubdevlist
141 -R "$ALT_ROOT"/stubboot -o $rootdev,"$ALT_ROOT"
145 $zfsarg -o $rootdev
147 print "Installing grub on $rootdev"
148 "$ALT_ROOT"/sbin/installgrub $STAGE1 $STAGE2 $rootdev
/titanic_52/usr/src/boot/sys/boot/i386/loader/
H A Dchain.c48 struct i386_devdesc *rootdev; in command_chain() local
79 i386_getdev((void **)(&rootdev), argv[1], NULL); in command_chain()
80 if (rootdev == NULL) { in command_chain()
103 relocator_edx = bd_unit2bios(rootdev->d_unit); in command_chain()
/titanic_52/usr/src/boot/sys/boot/userboot/userboot/
H A Dbootinfo32.c138 struct i386_devdesc *rootdev; in bi_load32() local
154 * Allow the environment variable 'rootdev' to override the supplied device in bi_load32()
155 * This should perhaps go to MI code and/or have $rootdev tested/set by in bi_load32()
158 rootdevname = getenv("rootdev"); in bi_load32()
159 userboot_getdev((void **)(&rootdev), rootdevname, NULL); in bi_load32()
160 if (rootdev == NULL) { /* bad $rootdev/$currdev */ in bi_load32()
166 getrootmount(userboot_fmtdev((void *)rootdev)); in bi_load32()
171 printf("root device %s invalid\n", i386_fmtdev(rootdev)); in bi_load32()
175 free(rootdev); in bi_load32()
[all...]
H A Dbootinfo64.c185 struct userboot_devdesc *rootdev; in bi_load64() local
202 * Allow the environment variable 'rootdev' to override the supplied device in bi_load64()
203 * This should perhaps go to MI code and/or have $rootdev tested/set by in bi_load64()
206 rootdevname = getenv("rootdev"); in bi_load64()
207 userboot_getdev((void **)(&rootdev), rootdevname, NULL); in bi_load64()
208 if (rootdev == NULL) { /* bad $rootdev/$currdev */ in bi_load64()
214 getrootmount(userboot_fmtdev((void *)rootdev)); in bi_load64()
/titanic_52/usr/src/boot/sys/boot/efi/loader/arch/i386/
H A Dbootinfo.c214 struct devdesc *rootdev; in bi_load() local
223 * Allow the environment variable 'rootdev' to override the supplied in bi_load()
224 * device. This should perhaps go to MI code and/or have $rootdev in bi_load()
227 rootdevname = getenv("rootdev"); in bi_load()
228 i386_getdev((void**)&rootdev, rootdevname, NULL); in bi_load()
229 if (rootdev != NULL) { in bi_load()
231 getrootmount(i386_fmtdev(rootdev)); in bi_load()
232 free(rootdev); in bi_load()
/titanic_52/usr/src/boot/sys/boot/efi/loader/
H A Dbootinfo.c341 struct devdesc *rootdev; in bi_load() local
372 * Allow the environment variable 'rootdev' to override the supplied in bi_load()
373 * device. This should perhaps go to MI code and/or have $rootdev in bi_load()
376 rootdevname = getenv("rootdev"); in bi_load()
377 archsw.arch_getdev((void**)(&rootdev), rootdevname, NULL); in bi_load()
378 if (rootdev == NULL) { in bi_load()
384 getrootmount(efi_fmtdev((void *)rootdev)); in bi_load()
/titanic_52/usr/src/boot/sys/boot/common/
H A Dmultiboot2.c581 mb_kernel_cmdline(struct preloaded_file *fp, struct devdesc *rootdev, in mb_kernel_cmdline() argument
600 if (rootdev->d_type == DEVT_ZFS) in mb_kernel_cmdline()
620 fs = zfs_bootfs(rootdev); in mb_kernel_cmdline()
787 struct devdesc *rootdev; in multiboot2_exec() local
801 efi_getdev((void **)(&rootdev), NULL, NULL); in multiboot2_exec()
803 i386_getdev((void **)(&rootdev), NULL, NULL); in multiboot2_exec()
807 if (rootdev == NULL) { in multiboot2_exec()
826 error = mb_kernel_cmdline(fp, rootdev, &cmdline); in multiboot2_exec()
H A Dboot.c286 * Try to find the /etc/fstab file on the filesystem (rootdev),
296 getrootmount(char *rootdev) in getrootmount() argument
305 sprintf(lbuf, "%s/etc/fstab", rootdev); in getrootmount()
H A Dbootstrap.h62 int getrootmount(char *rootdev);
H A Dhelp.common313 set rootdev=<path>
317 $rootdev explicitly.
/titanic_52/usr/src/cmd/fs.d/udfs/fsck/
H A Dsetup.c86 dev_t rootdev; in setup() local
95 rootdev = statb.st_dev; in setup()
118 if (rootdev == statb.st_rdev) in setup()
199 if (rootdev == statb.st_rdev) in setup()
/titanic_52/usr/src/cmd/nsadmin/
H A Dsystem45 * rootdev: Set the root device. This should be a fully
53 * rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a
/titanic_52/usr/src/boot/sys/boot/arm/at91/libat91/
H A Dtag_list.c57 tagList->u.core.rootdev = 0xff; in InitTagList()
/titanic_52/usr/src/uts/common/fs/hsfs/
H A Dhsfs_vfsops.c1462 dev_t rootdev; in hsfs_mountroot() local
1468 rootdev = getrootdev(); in hsfs_mountroot()
1469 if (rootdev == (dev_t)NODEV) in hsfs_mountroot()
1471 vfsp->vfs_dev = rootdev; in hsfs_mountroot()
1485 error = hs_mountfs(vfsp, rootdev, "/", mode, 1, CRED(), 1); in hsfs_mountroot()
/titanic_52/usr/src/uts/common/fs/ufs/
H A Dufs_vfsops.c471 dev_t rootdev; in ufs_mountroot() local
481 rootdev = getrootdev(); in ufs_mountroot()
482 if (rootdev == (dev_t)NODEV) in ufs_mountroot()
484 vfsp->vfs_dev = rootdev; in ufs_mountroot()
498 rootdev = vfsp->vfs_dev; in ufs_mountroot()
533 devvp = makespecvp(rootdev, VBLK); in ufs_mountroot()
/titanic_52/usr/src/uts/common/fs/udfs/
H A Dudf_vfsops.c549 dev_t rootdev; in udf_mountroot() local
559 rootdev = getrootdev(); in udf_mountroot()
560 if (rootdev == (dev_t)NODEV) { in udf_mountroot()
563 vfsp->vfs_dev = rootdev; in udf_mountroot()
576 rootdev = vfsp->vfs_dev; in udf_mountroot()
589 error = ud_mountfs(vfsp, why, rootdev, "/", CRED(), 1); in udf_mountroot()
/titanic_52/usr/src/uts/common/os/
H A Dspace.c113 dev_t rootdev; /* dev_t of the root device */ variable
H A Dswapgeneric.c219 rootdev = rootvfs->vfs_dev; in rootconf()
365 * is set if rootdev is set via /etc/system. in loadrootmodules()
/titanic_52/usr/src/uts/common/sys/
H A Dsystm.h89 extern dev_t rootdev; /* device of the root */

12