aboutsummaryrefslogtreecommitdiff
path: root/lib/libdevinfo
Commit message (Collapse)AuthorAgeFilesLines
* 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
* mdoc(7) police: fix markup.Ruslan Ermilov2001-04-231-31/+31
| | | | Notes: svn path=/head/; revision=75851
* devinfo_var.h should not be in INCSMike Smith2001-04-201-1/+1
| | | | Notes: svn path=/head/; revision=75745
* More typo fixes, .Os -> .FxMike Smith2001-04-201-4/+5
| | | | Notes: svn path=/head/; revision=75744
* typo .Fr -> .FnMike Smith2001-04-201-1/+1
| | | | Notes: svn path=/head/; revision=75743
* Add a manpage for libdevinfo.Mike Smith2001-04-202-1/+238
| | | | Notes: svn path=/head/; revision=75741
* This is the Device Information Library, libdevinfo.Mike Smith2001-04-204-0/+681
The devinfo library provides access to the kernel's internal device hierarchy and to the I/O resource manager. The library uses a sysctl(9) interface to obtain a snapshot of the kernel's state which is then made available to the application. Notes: svn path=/head/; revision=75726