summaryrefslogtreecommitdiff
path: root/lib/libdevinfo/devinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Expose the new kernel data structures to libdevinfo:Warner Losh2002-09-201-3/+12
| | | | | | | | | 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
* 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
* This is the Device Information Library, libdevinfo.Mike Smith2001-04-201-0/+488
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