Loader paged/pageable data is not always paged.
authortsoome <tsoome@FreeBSD.org>
Tue, 8 Nov 2016 06:50:18 +0000 (06:50 +0000)
committertsoome <tsoome@FreeBSD.org>
Tue, 8 Nov 2016 06:50:18 +0000 (06:50 +0000)
commit4455fc87b3418ffbe5b6bfd7eb7c3d50d402bbe0
tree2cc1284b2e4c42654073ba2021132df2173c494f
parent998defe1942c7aa1a2e39bf6a1ae9e61082bb3b1
Loader paged/pageable data is not always paged.

This change does modify devsw dv_print() to return the int value,
enabling walkers to interrupt the walk on non zero value from dv_print().

This will allow the pager_print actually to stop displaying data on
user input, and additionally pager is used in various *dev_print callbacks,
where it was missing.

For test, lsdev [-v] command should display data by screenfuls and should
stop when the key 'q' is pressed on pager prompt.

Reviewed by: allanjude
Approved by: allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D5461
27 files changed:
lib/libstand/stand.h
sys/boot/common/dev_net.c
sys/boot/common/module.c
sys/boot/common/part.c
sys/boot/common/util.c
sys/boot/common/util.h
sys/boot/efi/libefi/efinet.c
sys/boot/efi/libefi/efipart.c
sys/boot/efi/loader/main.c
sys/boot/i386/libfirewire/firewire.c
sys/boot/i386/libi386/bioscd.c
sys/boot/i386/libi386/biosdisk.c
sys/boot/i386/libi386/pxe.c
sys/boot/mips/beri/loader/beri_disk_cfi.c
sys/boot/mips/beri/loader/beri_disk_sdcard.c
sys/boot/ofw/libofw/ofw_disk.c
sys/boot/pc98/libpc98/bioscd.c
sys/boot/pc98/libpc98/biosdisk.c
sys/boot/powerpc/kboot/hostdisk.c
sys/boot/powerpc/ps3/ps3cdrom.c
sys/boot/powerpc/ps3/ps3disk.c
sys/boot/uboot/lib/disk.c
sys/boot/usb/storage/umass_loader.c
sys/boot/userboot/userboot/host.c
sys/boot/userboot/userboot/userboot_disk.c
sys/boot/zfs/zfs.c
sys/boot/zfs/zfsimpl.c