diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2016-11-08 06:50:18 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2016-11-08 06:50:18 +0000 |
commit | cbd6713146d14bb506626d8add767771f9cbfb97 (patch) | |
tree | 2cc1284b2e4c42654073ba2021132df2173c494f /lib/libstand | |
parent | cd1693d3f953314178bc9c1ad75283ed29dc26ba (diff) | |
download | src-cbd6713146d14bb506626d8add767771f9cbfb97.tar.gz src-cbd6713146d14bb506626d8add767771f9cbfb97.zip |
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
Notes
Notes:
svn path=/head/; revision=308434
Diffstat (limited to 'lib/libstand')
-rw-r--r-- | lib/libstand/stand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h index 238f9edad7d1..f77a586fb069 100644 --- a/lib/libstand/stand.h +++ b/lib/libstand/stand.h @@ -143,7 +143,7 @@ struct devsw { int (*dv_open)(struct open_file *f, ...); int (*dv_close)(struct open_file *f); int (*dv_ioctl)(struct open_file *f, u_long cmd, void *data); - void (*dv_print)(int verbose); /* print device information */ + int (*dv_print)(int verbose); /* print device information */ void (*dv_cleanup)(void); }; |