summaryrefslogtreecommitdiff
path: root/lib/libdevinfo
Commit message (Collapse)AuthorAgeFilesLines
* devinfo: add man page linksEric van Gyzen2020-08-041-0/+10
| | | | | | | | | | | Add man page links for all functions in devinfo(3). Reported by: vim MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=363867
* devinfo: fix memory leak on error pathsEric van Gyzen2020-08-041-9/+23
| | | | | | | | | | | | Refactor to create devinfo_free_dev(). Call it to plug a memory leak on two error paths in devinfo_init_devices(). Reported by: Coverity MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=363866
* Update Makefile.depend filesSimon J. Gerraty2019-12-111-1/+0
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* pkgbase: Create a FreeBSD-utilities package and make it the default oneEmmanuel Vadot2019-09-051-1/+0
| | | | | | | | | | | | | The default package use to be FreeBSD-runtime but it should only contain binaries and libs enough to boot to single user and repair the system, it is also very handy to have a package that can be tranform to a small mfsroot. So create a new package named FreeBSD-utilities and make it the default one. Also move a few binaries and lib into this package when it make sense. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21506 Notes: svn path=/head/; revision=351858
* Update to device enumeration protocol 2Warner Losh2018-05-312-19/+33
| | | | | | | | | | | The new protocol from the kernel encodes things as a string table, extract it into fields. strdup the strings, and free them when we're done. Differential Revision: https://reviews.freebsd.org/D15629 Notes: svn path=/head/; revision=334415
* Sanity check the return from the kernel.Warner Losh2018-05-311-0/+5
| | | | | | | | | | | We should be getting back as many bytes as we asked for, and we don't handle shortages at all, so just reject anything that's not right. Differential Revision: https://reviews.freebsd.org/D15629 Notes: svn path=/head/; revision=334413
* There's no meaningful errno when there's a version mismatch, so useWarner Losh2018-05-301-1/+2
| | | | | | | warnx. Also, report the mis-matched versions. Notes: svn path=/head/; revision=334383
* Bump number that's an insane number of devices from 1,000 to 10,000. IWarner Losh2017-12-211-1/+1
| | | | | | | | | | | have access to machines that are pushing 400 devices. When 1,000 was selected, it was rare to get even 40 or 50 devices. Bump the limit by 10x to keep up with the times. Sponsored by: Netflix Notes: svn path=/head/; revision=327054
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-263-0/+6
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified 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. Notes: svn path=/head/; revision=326219
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* MFHGlen Barber2016-04-041-0/+2
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297567
| * Bump libdevinfo SHLIB_MAJOR, forgotten in r297000.Justin Hibbits2016-03-181-0/+2
| | | | | | | | | | | | | | Spotted by: bapt Notes: svn path=/head/; revision=297003
* | First pass through library packaging.Glen Barber2016-02-041-0/+1
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
* Convert rman to use rman_res_t instead of u_longJustin Hibbits2016-01-272-8/+8
| | | | | | | | | | | | | | | | | | | | | | | Summary: Migrate to using the semi-opaque type rman_res_t to specify rman resources. For now, this is still compatible with u_long. This is step one in migrating rman to use uintmax_t for resources instead of u_long. Going forward, this could feasibly be used to specify architecture-specific definitions of resource ranges, rather than baking a specific integer type into the API. This change has been broken out to facilitate MFC'ing drivers back to 10 without breaking ABI. Reviewed By: jhb Sponsored by: Alex Perez/Inertial Computing Differential Revision: https://reviews.freebsd.org/D5075 Notes: svn path=/head/; revision=294883
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery2015-11-251-1/+0
| | | | | | | | | | | This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 sync of headSimon J. Gerraty2015-05-271-1/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * 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/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | 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
| * | Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+3
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+16
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Expose the constants for internal new-bus device flags to userland. TheJohn Baldwin2015-02-051-1/+1
| |/ |/| | | | | | | | | | | | | | | flag value is already exposed via dv_flags, just not the meaning of the flags themselves. Use these constants to annotate devices that are disabled or suspended in devinfo output. Notes: svn path=/head/; revision=278299
* | use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-1/+1
|/ | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* sys/rman.h now requires sys/types.h. Include it to make the API matchWarner Losh2011-02-102-1/+2
| | | | | | | | | | the man page again. Submitted by: Raphael Kubo da Costa MFC after: 2 weeks Notes: svn path=/head/; revision=218505
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway. Notes: svn path=/head/; revision=201381
* Collapse devinfo_state_t with device_state_t in order to avoid aAttilio Rao2009-11-151-10/+2
| | | | | | | | | | structure replication and improve manteneability. Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org> Notes: svn path=/head/; revision=199291
* Use explicit int values for the device states in order to allow,Attilio Rao2009-09-151-4/+4
| | | | | | | | | | | if necessary, in the future, adds of new states without breaking ABI between revisions. Proposed by: kib Approved by: imp Notes: svn path=/head/; revision=197224
* Markup fixes.Ruslan Ermilov2006-09-171-1/+1
| | | | Notes: svn path=/head/; revision=162385
* Make the variadic macro debug() comply to C99.Stefan Farfeleder2006-07-171-3/+6
| | | | Notes: svn path=/head/; revision=160428
* Add __BEGIN_DECLS/__END_DECLS so that this header can be included in C++Craig Rodrigues2005-08-311-0/+9
| | | | | | | | | | | programs. Also, add include guards. PR: bin/44277 Submitted by: Alex Zepeda <freebsd at blarf dot homeip dot net> MFC after: 1 day Notes: svn path=/head/; revision=149671
* Clear devinfo_generation in devinfo_free() since we are freeing all of theJohn Baldwin2005-06-221-0/+1
| | | | | | | | | | | | | | | | cached state. Otherwise, a subsequent call to devinfo_init() would succeed without reading the device tree from the kernel thinking that the cached state was up to date since the generation count was the same. However, since the cached state was actually free'd, attempts to examine the tree after the second devinfo_init() would fail. Reported by: Juho Vuori juho dot vuori at kepa dot fi Submitted by: Stefan Farfeleder stefan at fafoe dot narf dot at Approved by: re (dwhite) MFC after: 1 week Notes: svn path=/head/; revision=147529
* Remove unused variables. Whitespace cleaning.Philippe Charnier2005-05-201-13/+13
| | | | Notes: svn path=/head/; revision=146441
* Fix typo in a comment.Stefan Farfeleder2005-03-011-1/+1
| | | | Notes: svn path=/head/; revision=142951
* Prefer C99's __func__ over GCC's __FUNCTION__.Stefan Farfeleder2004-09-221-1/+1
| | | | Notes: svn path=/head/; revision=135576
* Enclose .Fa fn with ``The ... function'' at the beginning of sentences.Philippe Charnier2004-07-261-4/+8
| | | | Notes: svn path=/head/; revision=132667
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119893
* Expand length of pnpinfo and length fields since pccard pnpinfo canWarner Losh2003-02-171-2/+2
| | | | | | | easily be longer than 64 characters. Notes: svn path=/head/; revision=111045
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* Expose the new kernel data structures to libdevinfo:Warner Losh2002-09-204-6/+41
| | | | | | | | | o Added dd_pnpinfo, dd_location, dd_devflags, dd_flags and dd_state o Copy/initialize these as necessary. o Document the changes to the interface in devinfo.3. Notes: svn path=/head/; revision=103662
* o Merge <machine/ansi.h> and <machine/types.h> into a new headerMike Barcroft2002-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien Notes: svn path=/head/; revision=102227
* MAN[1-9] -> MAN.Ruslan Ermilov2002-05-131-2/+1
| | | | Notes: svn path=/head/; revision=96520
* Made this header self-sufficient.Bruce Evans2001-10-031-6/+9
| | | | | | | Fully parenthesized a macro definition. Notes: svn path=/head/; revision=84399
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Implement __FBSDID()Matthew Dillon2001-09-161-2/+3
| | | | Notes: svn path=/head/; revision=83551
* Include string.h for the strlen() prototype to quiet a warning.John Baldwin2001-08-101-0/+1
| | | | Notes: svn path=/head/; revision=81459
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79754