Page MenuHomeFreeBSD
Feed Advanced Search

Sep 21 2025

damjan.jov_gmail.com updated the diff for D52509: sound: Implement COMPAT_FREEBSD32 shims.

Sorry. This patch fixes the audio_errinfo32 typos.

Sep 21 2025, 11:04 PM
damjan.jov_gmail.com updated the diff for D52509: sound: Implement COMPAT_FREEBSD32 shims.

This patch also uses C standard names for struct field types, and properly initializes and copies fields to audio_errinfo32.

Sep 21 2025, 8:48 AM
damjan.jov_gmail.com updated the diff for D52509: sound: Implement COMPAT_FREEBSD32 shims.

This patch also uses fixed-width types for the 32 bit structs.

Sep 21 2025, 1:32 AM
damjan.jov_gmail.com added inline comments to D52509: sound: Implement COMPAT_FREEBSD32 shims.
Sep 21 2025, 1:24 AM

Sep 20 2025

damjan.jov_gmail.com updated the diff for D52509: sound: Implement COMPAT_FREEBSD32 shims.

Thank you for the feedback. This new patch:

  • Moves the 32 bit structs from sys/soundcard.h to dsp.c.
  • Uses tabs for indentation.
  • _IOC_NEWTYPE is used instead of repeating the ioctl definitions with the new type.
  • Removes snd_sync_parm32 and AIOSYNC32, because snd_sync_parm and AIOSYNC are not really implemented.
  • Only converts from 32 to 64 bit on AIOSFMT32, not on AIOGFMT32 where it was unnecessary.
  • Converts from 32 to 64 bit on AIOGCAP32, unlike before, because all-zero fields have a meaning to the ioctl.
Sep 20 2025, 11:08 AM
damjan.jov_gmail.com added a comment to D52509: sound: Implement COMPAT_FREEBSD32 shims.

This is just a quick draft, haven't tested that so take this with a grain of salt, but I guess something like this could work?

			audio_errinfo *ei = (audio_errinfo *)arg;

			bzero((void *)ei, sizeof(*ei));
Sep 20 2025, 4:01 AM

Sep 19 2025

damjan.jov_gmail.com added a comment to D52509: sound: Implement COMPAT_FREEBSD32 shims.

If this is what you meant, it does seems considerably longer and uglier, for example:

Sep 19 2025, 6:34 PM

Sep 16 2025

damjan.jov_gmail.com added a comment to D52509: sound: Implement COMPAT_FREEBSD32 shims.

If we did this:

Sep 16 2025, 5:13 PM

Sep 15 2025

damjan.jov_gmail.com updated the diff for D52509: sound: Implement COMPAT_FREEBSD32 shims.

This patch makes a number of improvements:

  • The 32 bit structs are moved to sys/sys/soundcard.h, similar to struct sndstioc_nv_arg32 in sys/sys/sndstat.h (although most COMPAT_FREEBSD32 code in the kernel doesn't add 32 bit structs to header files, so why are we?).
  • _IOC_NEWTYPE is used instead of repeating the ioctl definitions with the new type.
  • The dsp_ioctl() function stays unchanged, instead a wrapper function dsp_ioctl_compat() does data conversions before and/or after calling dsp_ioctl(), for the structs that need conversion. This also has the benefit of better performance, as all the conversion is done outside of the locking done by dsp_ioctl(). And it's much cleaner, only a single COMPAT_FREEBSD32 ifdef is used.
  • I've removed snd_sync_parm32, because even snd_sync_parm is not really implemented.
  • Lines wrapped to 80 characters.
Sep 15 2025, 6:34 PM
damjan.jov_gmail.com added a comment to D52493: sound: Honor CHN_F_NBIO.

I agree, clearing CHN_F_NBIO in dsp_close() would be better. When debugging, if a closed channel has CHN_F_NBIO set, which then mysteriously disappears when it's re-opened, it could be confusing.

Sep 15 2025, 3:34 AM

Sep 13 2025

damjan.jov_gmail.com requested review of D52509: sound: Implement COMPAT_FREEBSD32 shims.
Sep 13 2025, 4:04 AM

Jun 6 2025

damjan.jov_gmail.com abandoned D47410: Fix the pf.conf(5) man page "endpoint-independent" section.

Abandoning because it's already fixed.

Jun 6 2025, 6:14 PM · network
damjan.jov_gmail.com added a comment to D47410: Fix the pf.conf(5) man page "endpoint-independent" section.

Hey Damjan. Are you still interested in this? Your latest patch is just removing those blocks. Please squash your commits into one and try remaking the patch. If not, please close this. Thanks for your submission!

Jun 6 2025, 6:12 PM · network

Nov 8 2024

damjan.jov_gmail.com added a comment to D46689: LibAlias: implement RFC 4787 REQ 1 and 3 (full cone NAT).
In D46689#1083011, @thj wrote:

This update:

  • Makes EIM opt-in, off by default, although I still think this decision needs broader discussion, or even a vote.

To be clear your position is that eim should be on by default?

Nov 8 2024, 5:18 PM · network
damjan.jov_gmail.com updated the diff for D46689: LibAlias: implement RFC 4787 REQ 1 and 3 (full cone NAT).

And this one adds more context to the patch.

Nov 8 2024, 5:08 PM · network
damjan.jov_gmail.com updated the diff for D46689: LibAlias: implement RFC 4787 REQ 1 and 3 (full cone NAT).

This update also changes NG_NAT_UDP_EIM from 0x800 to 0x200.

Nov 8 2024, 5:07 PM · network

Nov 5 2024

damjan.jov_gmail.com updated the diff for D46689: LibAlias: implement RFC 4787 REQ 1 and 3 (full cone NAT).

This update:

  • Makes EIM opt-in, off by default, although I still think this decision needs broader discussion, or even a vote.
  • Adds "udp_eim" options to all the libalias uses: ipfw, natd, ng_nat, and ppp.
  • Rewrites the man pages and header files so they are shorter and clearer.
  • Man pages don't introduce new errors in igor.
  • Uses PKT_ALIAS_UDP_EIM instead of PKT_ALIAS_ENDPOINT_INDEPENDENT.
  • Renames the splay tree from "source" to "internal_endpoint" in the source code.
  • Simplifies some conditions.
Nov 5 2024, 4:53 PM · network
damjan.jov_gmail.com added a comment to D47410: Fix the pf.conf(5) man page "endpoint-independent" section.
In D47410#1082152, @thj wrote:

Is there a reason this moves in the ordering of nat rules? We tend to aim for roughly alphabetical ordering if there isn't a reason for something different?

Nov 5 2024, 4:05 PM · network
damjan.jov_gmail.com updated the diff for D47410: Fix the pf.conf(5) man page "endpoint-independent" section.

Moves the "endpoint-independent" section to come after "bitmask", so they're in alphabetical order.

Nov 5 2024, 4:01 PM · network

Nov 3 2024

damjan.jov_gmail.com updated the diff for D47410: Fix the pf.conf(5) man page "endpoint-independent" section.

Also fix the typo: "caues" -> "causes".

Nov 3 2024, 1:22 PM · network
damjan.jov_gmail.com requested review of D47410: Fix the pf.conf(5) man page "endpoint-independent" section.
Nov 3 2024, 12:12 PM · network

Oct 18 2024

damjan.jov_gmail.com added a comment to D46689: LibAlias: implement RFC 4787 REQ 1 and 3 (full cone NAT).

I also need to patch ipfw and natd with user-settable options for the new flag, before this patch is fully ready... I am busy so that will probably take a few more weeks.

Oct 18 2024, 4:36 PM · network
damjan.jov_gmail.com added inline comments to D46689: LibAlias: implement RFC 4787 REQ 1 and 3 (full cone NAT).
Oct 18 2024, 4:35 PM · network

Oct 15 2024

damjan.jov_gmail.com updated the diff for D46689: LibAlias: implement RFC 4787 REQ 1 and 3 (full cone NAT).

This new version adds a flag that can be used to turn this feature on and off (it is on by default for greater compatibility), adds documentation to the header file and man page, and wraps lines at 80 characters.

Oct 15 2024, 2:09 AM · network

Sep 17 2024

damjan.jov_gmail.com requested review of D46689: LibAlias: implement RFC 4787 REQ 1 and 3 (full cone NAT).
Sep 17 2024, 6:44 PM · network

Jun 14 2022

damjan.jov_gmail.com added a comment to D34184: struct kinfo_file changes needed for lsof to work using only usermode APIs.
In D34184#804474, @kib wrote:

I still want the answer about use of the kernel addresses for kqueue/eventfd. Generally we try to not introduce new interfaces that directly expose KVA, whatever silly the idea of KASLR is.

Jun 14 2022, 12:36 AM · Contributor Reviews (src)

Apr 13 2022

damjan.jov_gmail.com added a comment to D34323: Add a kern.lockf sysctl to list the advisory byte-range locks on a specific vnode.

This is probably irrelevant now that D34756 added a more general way to retrieve advisory lock info.

Apr 13 2022, 5:32 PM · Contributor Reviews (src)
damjan.jov_gmail.com added a comment to D34184: struct kinfo_file changes needed for lsof to work using only usermode APIs.

Is this still relevant?
D34756 added a more general way to retrieve advisory lock info.

Apr 13 2022, 5:29 PM · Contributor Reviews (src)

Feb 22 2022

damjan.jov_gmail.com abandoned D34090: Kernel changes needed for lsof to work using only user mode APIs.

Thank you for your feedback. New versions of this patch are at:
https://reviews.freebsd.org/D34184
https://reviews.freebsd.org/D34323

Feb 22 2022, 7:05 PM · Contributor Reviews (src)

Feb 20 2022

damjan.jov_gmail.com updated the diff for D34184: struct kinfo_file changes needed for lsof to work using only usermode APIs.

Also:

  • Add a kf_eventfd_addr field to kf_eventfd and populate it.
Feb 20 2022, 12:58 PM · Contributor Reviews (src)
damjan.jov_gmail.com requested review of D34323: Add a kern.lockf sysctl to list the advisory byte-range locks on a specific vnode.
Feb 20 2022, 12:54 PM · Contributor Reviews (src)

Feb 6 2022

damjan.jov_gmail.com requested review of D34184: struct kinfo_file changes needed for lsof to work using only usermode APIs.
Feb 6 2022, 12:03 PM · Contributor Reviews (src)

Feb 2 2022

damjan.jov_gmail.com added a comment to D34090: Kernel changes needed for lsof to work using only user mode APIs.

Kernel changes needed for lsof to work using only user mode APIs,

Can you confirm that with the set of changes here and without use of kvm, lsof's full functionality is available?

Feb 2 2022, 3:50 AM · Contributor Reviews (src)

Jan 29 2022

damjan.jov_gmail.com updated the diff for D34090: Kernel changes needed for lsof to work using only user mode APIs.

Added kf_pipe_buffer_[in/out/size] fields to kf_pipe.

Jan 29 2022, 12:16 PM · Contributor Reviews (src)
damjan.jov_gmail.com requested review of D34090: Kernel changes needed for lsof to work using only user mode APIs.
Jan 29 2022, 10:30 AM · Contributor Reviews (src)

Dec 6 2021

damjan.jov_gmail.com added a comment to D33277: fcntl(2): add F_KINFO operation.
In D33277#752192, @kib wrote:

Why not a sysctl-based interface, where the fd is a component of the MIB? Then info for a specific fd can be grabbed from a different process.

There is already kern.proc.filedesc, and I highly doubt that somebody needs a path for individual fd of remote process.

Dec 6 2021, 1:36 AM

Sep 19 2021

damjan.jov_gmail.com requested review of D32018: devel/gvfs should depend on sysutils/lsof.
Sep 19 2021, 3:27 AM · Contributor Reviewers (ports)

May 4 2018

damjan.jov_gmail.com created D15297: msdosfs: use vfs_timestamp() to generate timestamps instead of getnanotime().
May 4 2018, 5:53 PM · Src Committers