#
7554746c |
| 29-Jan-2025 |
John Baldwin <jhb@FreeBSD.org> |
libdevinfo: Avoid false positives for the root0 sentinel value
Previously, a NULL pointer value was used to request the root0 device at the top of the device tree. However, this meant that resource
libdevinfo: Avoid false positives for the root0 sentinel value
Previously, a NULL pointer value was used to request the root0 device at the top of the device tree. However, this meant that resource ranges from a rman with a NULL device pointer were annotated as being owned by root0 instead of being unowned. Switch to a different value for root0's sentinel to avoid the clash.
Since this is an ABI change, bump the SHLIB_MAJOR for libdevinfo to 7.
Reported by: jrtc27 Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D48675
show more ...
|
Revision tags: release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
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
show more ...
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0 |
|
#
440cec3f |
| 12-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
e383ec74 |
| 06-Aug-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r363739 through r363986.
|
#
32592d86 |
| 04-Aug-2020 |
Eric van Gyzen <vangyzen@FreeBSD.org> |
devinfo: fix memory leak on error paths
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
devinfo: fix memory leak on error paths
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
show more ...
|
Revision tags: release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
cf72c10f |
| 31-May-2018 |
Warner Losh <imp@FreeBSD.org> |
Update to device enumeration protocol 2
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 Re
Update to device enumeration protocol 2
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
show more ...
|
#
92376fa7 |
| 31-May-2018 |
Warner Losh <imp@FreeBSD.org> |
Sanity check the return from the kernel.
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 Revisi
Sanity check the return from the kernel.
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
show more ...
|
#
51a9cfbf |
| 30-May-2018 |
Warner Losh <imp@FreeBSD.org> |
There's no meaningful errno when there's a version mismatch, so use warnx. Also, report the mis-matched versions.
|
#
54b4b13c |
| 24-Dec-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r326936 through r327149.
|
#
41ec95c4 |
| 21-Dec-2017 |
Warner Losh <imp@FreeBSD.org> |
Bump number that's an insane number of devices from 1,000 to 10,000. I 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 th
Bump number that's an insane number of devices from 1,000 to 10,000. I 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
show more ...
|
#
5e53a4f9 |
| 26-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
lib: further adoption of SPDX licensing ID tags.
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 pr
lib: further adoption of SPDX licensing ID tags.
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.
show more ...
|
Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0 |
|
#
60cd5863 |
| 17-Jul-2006 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Make the variadic macro debug() comply to C99.
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0 |
|
#
afc7f38c |
| 22-Jun-2005 |
John Baldwin <jhb@FreeBSD.org> |
Clear devinfo_generation in devinfo_free() since we are freeing all of the cached state. Otherwise, a subsequent call to devinfo_init() would succeed without reading the device tree from the kernel
Clear devinfo_generation in devinfo_free() since we are freeing all of the 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
show more ...
|
#
109a0e6b |
| 20-May-2005 |
Philippe Charnier <charnier@FreeBSD.org> |
Remove unused variables. Whitespace cleaning.
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
2af3af27 |
| 01-Mar-2005 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Fix typo in a comment.
|
Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
#
e60b9f51 |
| 22-Sep-2004 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Prefer C99's __func__ over GCC's __FUNCTION__.
|
Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs |
|
#
43832002 |
| 20-Sep-2002 |
Warner Losh <imp@FreeBSD.org> |
Expose the new kernel data structures to libdevinfo: 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 interfa
Expose the new kernel data structures to libdevinfo: 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.
show more ...
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs |
|
#
e67f5b9f |
| 16-Sep-2001 |
Matthew Dillon <dillon@FreeBSD.org> |
Implement __FBSDID()
|
#
e495c560 |
| 10-Aug-2001 |
John Baldwin <jhb@FreeBSD.org> |
Include string.h for the strlen() prototype to quiet a warning.
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
a2e6df29 |
| 20-Apr-2001 |
Mike Smith <msmith@FreeBSD.org> |
This is the Device Information Library, libdevinfo.
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) inter
This is the Device Information Library, libdevinfo.
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.
show more ...
|