<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>libpfctl: fix add state/source limiter</title>
<updated>2026-04-17T11:55:05+00:00</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2026-04-16T12:30:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=13b4a14c719ab7c65ccaab86ddc79f0edc312aa3'/>
<id>13b4a14c719ab7c65ccaab86ddc79f0edc312aa3</id>
<content type='text'>
When processing the return data from these calls pass the limiter
pointer, not the limiter pointer pointer.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When processing the return data from these calls pass the limiter
pointer, not the limiter pointer pointer.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
</pre>
</div>
</content>
</entry>
<entry>
<title>ntp_adjtime.2: Increase visibility</title>
<updated>2026-04-17T00:30:46+00:00</updated>
<author>
<name>Alexander Ziaee</name>
<email>ziaee@FreeBSD.org</email>
</author>
<published>2026-04-17T00:30:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b49b3ccd40bda02f530c679f23f42ba9e0e4b2e2'/>
<id>b49b3ccd40bda02f530c679f23f42ba9e0e4b2e2</id>
<content type='text'>
+ s/ntp/ntpd/ for correctness + apropos results in document description
+ silence a linter warning by escaping a period with a zero-width space

MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
+ s/ntp/ntpd/ for correctness + apropos results in document description
+ silence a linter warning by escaping a period with a zero-width space

MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>pkru.3: Note that the kernel may not respect PKRU protections</title>
<updated>2026-04-16T17:46:11+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-04-16T17:46:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fa77fecb0e06ec697e3d7a9ed899e568f1d2090c'/>
<id>fa77fecb0e06ec697e3d7a9ed899e568f1d2090c</id>
<content type='text'>
There are cases where the kernel will be able to access memory covered
by a PKRU key which nomially prohibits accesses.  I believe regular
copyin()/copyout() are subject to the contents of PKRU, but memory
accesses via uiomove_fromphys() will not be.  This can arise when
performing fault I/O, for instance.  I didn't test, but I suspect AIO is
another case.

Update the man page to acknowledge this.

Reviewed by:	alc, kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56416
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are cases where the kernel will be able to access memory covered
by a PKRU key which nomially prohibits accesses.  I believe regular
copyin()/copyout() are subject to the contents of PKRU, but memory
accesses via uiomove_fromphys() will not be.  This can arise when
performing fault I/O, for instance.  I didn't test, but I suspect AIO is
another case.

Update the man page to acknowledge this.

Reviewed by:	alc, kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56416
</pre>
</div>
</content>
</entry>
<entry>
<title>pkru.3: Remove a qualifier</title>
<updated>2026-04-16T17:46:05+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-04-16T17:46:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fe6bf738aaeb3d5fd74aabfcbf01eba827df6594'/>
<id>fe6bf738aaeb3d5fd74aabfcbf01eba827df6594</id>
<content type='text'>
Now that i386 kernels are deprecated, we don't really need to mention
this limitation.  It's also a bit dated since PKRU is supported with
5-level paging as well.

Reviewed by:	alc, kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56415
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that i386 kernels are deprecated, we don't really need to mention
this limitation.  It's also a bit dated since PKRU is supported with
5-level paging as well.

Reviewed by:	alc, kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56415
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/libifconfig: Fix pointer-sign warnings</title>
<updated>2026-04-16T06:05:22+00:00</updated>
<author>
<name>Ryan Moeller</name>
<email>rmoeller.dev@gmail.com</email>
</author>
<published>2025-09-18T15:04:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=20cd1b475a1ef9dfca30726999aa1b9a02d5bc39'/>
<id>20cd1b475a1ef9dfca30726999aa1b9a02d5bc39</id>
<content type='text'>
Fix all pointer-sign warnings generated when compiling libifconfig.

One of these warnings comes from the misuse of snl_add_msg_attr_string
for a byte array.  Though userland treats carpr_key as a string, it is
actually an array of bytes.  Handle it as such in libifconfig.

While here, fix a small consistency nit in ifconfig_sfp_get_sfp_dump.

Signed-off-by: Ryan Moeller &lt;rmoeller.dev@gmail.com&gt;
Reviewed by: imp, zlei
Pull Request: https://github.com/freebsd/freebsd-src/pull/1850
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix all pointer-sign warnings generated when compiling libifconfig.

One of these warnings comes from the misuse of snl_add_msg_attr_string
for a byte array.  Though userland treats carpr_key as a string, it is
actually an array of bytes.  Handle it as such in libifconfig.

While here, fix a small consistency nit in ifconfig_sfp_get_sfp_dump.

Signed-off-by: Ryan Moeller &lt;rmoeller.dev@gmail.com&gt;
Reviewed by: imp, zlei
Pull Request: https://github.com/freebsd/freebsd-src/pull/1850
</pre>
</div>
</content>
</entry>
<entry>
<title>libpmc: surface raw TSC in pmclog events</title>
<updated>2026-04-16T06:05:21+00:00</updated>
<author>
<name>Andre Silva</name>
<email>andasilv@amd.com</email>
</author>
<published>2026-03-31T20:28:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fbbf71f5813b041526c4d439d9961e8a8281d291'/>
<id>fbbf71f5813b041526c4d439d9961e8a8281d291</id>
<content type='text'>
The pmclog record header carries the raw TSC for each event. Export it
in struct pmclog_ev, fix JSON output to emit it unsigned, and preserve
the installed header ABI by overlaying pl_tsc with the legacy pl_ts
storage.

Update pmclog(3) to document the TSC semantics and the legacy alias.

Sponsored by: AMD
Signed-off-by: Andre Silva &lt;andasilv@amd.com&gt;
Reviewed by: imp, mhorne, Ali Mashtizadeh
Pull Request: https://github.com/freebsd/freebsd-src/pull/2085
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The pmclog record header carries the raw TSC for each event. Export it
in struct pmclog_ev, fix JSON output to emit it unsigned, and preserve
the installed header ABI by overlaying pl_tsc with the legacy pl_ts
storage.

Update pmclog(3) to document the TSC semantics and the legacy alias.

Sponsored by: AMD
Signed-off-by: Andre Silva &lt;andasilv@amd.com&gt;
Reviewed by: imp, mhorne, Ali Mashtizadeh
Pull Request: https://github.com/freebsd/freebsd-src/pull/2085
</pre>
</div>
</content>
</entry>
<entry>
<title>sysctl.3: Correct kern and kern.proc type descriptions</title>
<updated>2026-04-16T06:05:20+00:00</updated>
<author>
<name>brothersw</name>
<email>tyler.waddell112@gmail.com</email>
</author>
<published>2026-04-07T18:45:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=32cc01e75aabc117c2c19c25291aa25eb1ec3cef'/>
<id>32cc01e75aabc117c2c19c25291aa25eb1ec3cef</id>
<content type='text'>
Fix several incorrect sysctl.3 type and mutability descriptions so the
manpage matches the actual kern and kern.proc interfaces.

Signed-off-by: Tyler Waddell &lt;tyler.waddell112@gmail.com&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2128
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix several incorrect sysctl.3 type and mutability descriptions so the
manpage matches the actual kern and kern.proc interfaces.

Signed-off-by: Tyler Waddell &lt;tyler.waddell112@gmail.com&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2128
</pre>
</div>
</content>
</entry>
<entry>
<title>ifconfig: add CMIS support for 400GbE optics</title>
<updated>2026-04-14T18:47:56+00:00</updated>
<author>
<name>Andrew Gallatin</name>
<email>gallatin@FreeBSD.org</email>
</author>
<published>2026-04-05T21:43:48+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=963f1a5455c9f94457c1fa122d18ab9c059db834'/>
<id>963f1a5455c9f94457c1fa122d18ab9c059db834</id>
<content type='text'>
Add support for CMIS based optics, typically used by 400GbE
and faster ethernet optics.   The CMIS standard requires paged
support for i2c ioctls.

This has been tested on an Nvidia ConnectX-7 and Broadcom
Thor2 400GbE NIC, and I have verified that optics vendor information,
light levels, and temperatures match the information provided by
various vendor tools.

Differential Revision: https://reviews.freebsd.org/D56265
Reviewed by: kbowling, sumit.saxena_broadcom.com
Sponsored by: Netflix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for CMIS based optics, typically used by 400GbE
and faster ethernet optics.   The CMIS standard requires paged
support for i2c ioctls.

This has been tested on an Nvidia ConnectX-7 and Broadcom
Thor2 400GbE NIC, and I have verified that optics vendor information,
light levels, and temperatures match the information provided by
various vendor tools.

Differential Revision: https://reviews.freebsd.org/D56265
Reviewed by: kbowling, sumit.saxena_broadcom.com
Sponsored by: Netflix
</pre>
</div>
</content>
</entry>
<entry>
<title>libthr.3: describe SIGTHR</title>
<updated>2026-04-14T12:51:38+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-04-13T23:42:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=934a35ac2bbbcf8cd65d8824fa824eb5c6170c88'/>
<id>934a35ac2bbbcf8cd65d8824fa824eb5c6170c88</id>
<content type='text'>
Explain how SIGTHR is used and that it should be not touched by user
code.  Note about SIGLIBRT.

Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D56384
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Explain how SIGTHR is used and that it should be not touched by user
code.  Note about SIGLIBRT.

Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D56384
</pre>
</div>
</content>
</entry>
<entry>
<title>libthr.3: describe what we mean by C runtime environment.</title>
<updated>2026-04-14T12:51:32+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-04-14T00:10:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fa912e3b9b5c074793bb1899f8256ea4baf72631'/>
<id>fa912e3b9b5c074793bb1899f8256ea4baf72631</id>
<content type='text'>
Reviewed by:	emaste
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Differential revision:  https://reviews.freebsd.org/D56384
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	emaste
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Differential revision:  https://reviews.freebsd.org/D56384
</pre>
</div>
</content>
</entry>
</feed>
