aboutsummaryrefslogtreecommitdiff
path: root/sbin/kldstat
Commit message (Collapse)AuthorAgeFilesLines
* kldstat: Memory zeroing using memset()Nazarenko Nikita Vladimirovich2025-07-181-2/+2
| | | | | | | | | Use memset() instead of the outdated bzero() function when zeroing memory. bzero() was in the POSIX.1-2001 standard. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1774 Closes: https://github.com/freebsd/freebsd-src/pull/1774
* kldstat.8: Polish optionsAlexander Ziaee2025-01-211-9/+11
| | | | | | | | | | | + Align and alphabetize options + -q: s/Only/Quietly/ for search + Tag SPDX MFC after: 3 days Reviewed by: gbe, carlavilla, mhorne Approved by: carlavilla, mhorne (mentors) Differential Revision: https://reviews.freebsd.org/D48325
* sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* kldstat(8): style(9) fixes.Hans Petter Selasky2021-12-071-53/+54
| | | | | | | | | No functional change intended. Differential revision: https://reviews.freebsd.org/D32506 Submitted by: christos@ MFC after: 1 week Sponsored by: NVIDIA Networking
* kldstat(8): Fix indentation, whitespace to tabs.Hans Petter Selasky2021-11-091-128/+133
| | | | | | | | | No functional change intended. Differential revision: https://reviews.freebsd.org/D32502 Submitted by: christos@ MFC after: 1 week Sponsored by: NVIDIA Networking
* kldstat(8): Add EXAMPLES to the man pageFernando Apesteguía2020-09-021-1/+73
| | | | | | | | | | Add EXAMPLES for all the flags Approved by: manpages (bcr@) Differential Revision: https://reviews.freebsd.org/D26283 Notes: svn path=/head/; revision=365266
* Allow three digits of module id without breaking table alignment.Michael Tuexen2018-07-021-3/+3
| | | | Notes: svn path=/head/; revision=335860
* Keep table aligned when address pointer is not of max length.Michael Tuexen2018-07-021-4/+6
| | | | Notes: svn path=/head/; revision=335859
* Improve consistency of indentation. Whitespace change only.Michael Tuexen2018-07-021-4/+4
| | | | Notes: svn path=/head/; revision=335858
* kldstat: align "Size" to the rightEitan Adler2018-05-261-2/+2
| | | | | | | | | | | This change also makes alignment and spacing an explicit number rather than a bunch of spaces. Reviewed by: mmacy Requested by: Yuri Pankov <yuripv@yuripv.net> Notes: svn path=/head/; revision=334236
* kldstat: align size to the rightEitan Adler2018-05-231-1/+1
| | | | | | | | | | This makes it easier to compare numbers directly. PR: 215747 Submitted by: "Alexander von Gernler" <grunk@pestilenz.org> Notes: svn path=/head/; revision=334093
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Typo.Mark Johnston2017-03-101-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=315018
* MFHGlen Barber2016-04-043-6/+29
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297567
| * DIRDEPS_BUILD: Update dependencies.Bryan Drewery2016-03-211-0/+1
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=297154
| * Add the ability to print out ht emodule specific information in likely formats.Julian Elischer2016-03-182-6/+28
| | | | | | | | | | | | | | | | | | | | Among other things this gives us the ability to find outthe syscall number of a dynamically loaded syscall that has a dynamicly allocated vector number. MFC after: 1 week Sponsored by: Panzura inc. Notes: svn path=/head/; revision=297023
* | MFHGlen Barber2016-02-181-0/+1
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295734
| * DIRDEPS_BUILD: Update dependencies.Bryan Drewery2016-02-161-0/+1
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295650
* | Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Add "kldstat -h"; showing module sizes in hex is rather weird.Edward Tomasz Napierala2016-01-233-12/+35
| | | | | | | | | | Reviewed by: emaste@ (earlier version) MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4969 Notes: svn path=/head/; revision=294624
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-282-4/+10
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+18
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-1/+1
| |/ |/| | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | Add quiet support for kldstat -nBaptiste Daroussin2014-01-222-4/+10
|/ | | | | | | | | PR: bin/180014 Submitted by: Olivier Cochard-Labbé <olivier@cochard.me> MFC after: 1 week Notes: svn path=/head/; revision=261032
* In printfile(), exit the process instead of only printing the warning.Konstantin Belousov2010-11-131-2/+3
| | | | | | | | | | | | | This fixes verbose mode when either -i specified non-existent kldfile id, or the file was unloaded between two kldnext(2) calls. While there, fix printfile() definition to be style(9)-compliant. Submitted by: arundel MFC after: 1 week Notes: svn path=/head/; revision=215248
* Casting size_t to uintmax_t is not necessary anymore. This alsoChristian Brueffer2010-05-121-3/+2
| | | | | | | | | | | | removes the need for stdint.h inclusion. PR: 146046 Submitted by: Alexander Best <alexbestms@wwu.de> Reviewed by: kan MFC after: 1 week Notes: svn path=/head/; revision=207964
* Raise WARNS for various tools where possible.Ed Schouten2010-01-171-1/+0
| | | | | | | Submitted by: Marius Nünnerich <marius@nuenneri.ch> Notes: svn path=/head/; revision=202532
* Only show the pathname in verbose output as intended in the last commit ↵Andrew Thompson2008-12-221-3/+5
| | | | | | | (r172862). Notes: svn path=/head/; revision=186398
* Add the full module path name to the kld_file_stat structureJohn Birrell2007-10-221-2/+2
| | | | | | | | | | | | | | | | | for kldstat(2). This allows libdtrace to determine the exact file from which a kernel module was loaded without having to guess. The kldstat(2) API is versioned with the size of the kld_file_stat structure, so this change creates version 2. Add the pathname to the verbose output of kldstat(8) too. MFC: 3 days Notes: svn path=/head/; revision=172862
* Mark up lkm with .Nm, since lkm is name of an api.Christian Brueffer2007-02-131-1/+1
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=166690
* Don't reference lkm(4), it doesn't exist.Christian Brueffer2007-02-101-1/+1
| | | | | | | | PR: 108980 Submitted by: Yonatan Notes: svn path=/head/; revision=166616
* -mdoc sweep.Ruslan Ermilov2005-11-181-1/+1
| | | | Notes: svn path=/head/; revision=152568
* Update usage.Pawel Jakub Dawidek2005-09-241-1/+1
| | | | Notes: svn path=/head/; revision=150509
* Add '-q' option, which (when used with '-m' option) just tells if the givenPawel Jakub Dawidek2005-09-232-3/+15
| | | | | | | | | | | module is loaded or compiled into the kernel. This is useful mostly in startup scripts, when module should be loaded only if it wasn't compiled into the kernel nor already loaded, eg.: kldstat -q -m g_eli || kldload geom_eli.ko || err 1 'geom_eli module failed to load.' Notes: svn path=/head/; revision=150497
* Synchronize program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-05-211-1/+2
| | | | Notes: svn path=/head/; revision=146465
* Add -m option (find module using modfind() and stat it).Max Khon2005-05-042-5/+31
| | | | Notes: svn path=/head/; revision=145861
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-5/+2
| | | | Notes: svn path=/head/; revision=140368