From nobody Wed Aug 5 15:16:38 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hFYsg2Tfxz6nQfk for ; Wed, 05 Aug 2026 15:16:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hFYsf6bZtz3w2j for ; Wed, 05 Aug 2026 15:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785942999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cWcLp05VF65cm38weFGvad1faFf4fhvszr07/5qTCaM=; b=DldZyQ++bMaVM8t8wxYiwRw7MWSCwkylUKmUSp6Rw5DGqU5fttsxcRLjgFfh2QJ62j1rtz fZTJ6fbbFAi669ZGaR+xrnNd1v6oQ4EF9LSpvnKoMxLmkD++oxNKq/RcsTVfHj+LQUE+nV HcJ70E0d2+1uBF1AfslDzv9yD+5a0VnhGD4nevqPEr2VpG59ViBTmjiCm0OW/bQZQKXehC 69U2sSxwSrTQ3iyDT8NaTi5XnZmBPt++/naGy3zNgC+yO+4/8zk/Yv1C2XZm4gy7iIH3na Mb26QVjvbGxDoUWhxpnnbku7xrYn7X09+xckp+WzvZpvHGGiAmliczzV3xcAbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785942999; a=rsa-sha256; cv=none; b=GzO2bj8xKp2f+O2rZdJrDS2N033bh+hkzzfQMB9GeIa/2STIGcT5Qh5JABIxz1DJ35hSxV ZnOJbSW7HCBKx+G0Xz73w3B+kC4JvwlSOBib90SmNI5u9VWcNZDbdvQ6zTYYVsu0YT9FYC ns5zxpb56le1n91pbGWCnQysZNFFXIqnYHHy2jRu7GIelhXfT7hI36+ulRoi38uQUO5Aoa W183oyUBK1/vlKYw538kjpcGKYgb+gUuE/aJuahN2HDoUoSpzpL+nKYPsQoNEhWhM9qgVl x4T61+7l4bONDbX+Ye3rqQ4C3IYQtdkYRtiOGzQjKM8lCnWzCeqTAWj5xDvNgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785942999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cWcLp05VF65cm38weFGvad1faFf4fhvszr07/5qTCaM=; b=TqXnJerP4tlxQdj7z9/4c1GniR+/NTNamr1H6rmunEJyDUsFF4UEdwfU9Lf4o2UkFs8+tx b0EqKhhszKmnkcFZvCQ5mp0M0AJ5t1T804Xsnt4jUWpt15R07DueicD6WZjUDb9KARyrSy pYjCqWd5kRIOo7FJFgzNtxWcc+d4MvPrL65I2OC74dKgnbMmuAjST9bGGqJTH0MqXbR62U NsImzJoNiEaYf+jpmrZnTUA39llxDQCP7afHWERoNwJqfW8aw/PAzsDPFaMStEA0B8hZKu ru3k6pkRRygtT3NpbedLnJnl/faidO7bzrFRQhIEy/40lrFeZIgBqa6bmwALCg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hFYsf5JWpzfs3 for ; Wed, 05 Aug 2026 15:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 4513b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 05 Aug 2026 15:16:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 9e2e70d55ff5 - stable/14 - libprocstat: Add handling for inotify descriptors List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9e2e70d55ff555b2405f4da3e0136d1209a63005 Auto-Submitted: auto-generated Date: Wed, 05 Aug 2026 15:16:38 +0000 Message-Id: <6a7353d6.4513b.61efc9a4@gitrepo.freebsd.org> The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=9e2e70d55ff555b2405f4da3e0136d1209a63005 commit 9e2e70d55ff555b2405f4da3e0136d1209a63005 Author: Mark Johnston AuthorDate: 2025-06-09 20:03:08 +0000 Commit: Mark Johnston CommitDate: 2026-08-05 15:15:15 +0000 libprocstat: Add handling for inotify descriptors MFC after: 3 months Sponsored by: Klara, Inc. (cherry picked from commit 79102e108099237b1d702e960706a739c7b071bd) --- lib/libprocstat/libprocstat.c | 5 +++++ lib/libprocstat/libprocstat.h | 1 + 2 files changed, 6 insertions(+) diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c index fa1c943bd931..11bea0b821a1 100644 --- a/lib/libprocstat/libprocstat.c +++ b/lib/libprocstat/libprocstat.c @@ -627,6 +627,10 @@ procstat_getfiles_kvm(struct procstat *procstat, struct kinfo_proc *kp, int mmap type = PS_FST_TYPE_EVENTFD; data = file.f_data; break; + case DTYPE_INOTIFY: + type = PS_FST_TYPE_INOTIFY; + data = file.f_data; + break; default: continue; } @@ -719,6 +723,7 @@ kinfo_type2fst(int kftype) { KF_TYPE_SOCKET, PS_FST_TYPE_SOCKET }, { KF_TYPE_VNODE, PS_FST_TYPE_VNODE }, { KF_TYPE_EVENTFD, PS_FST_TYPE_EVENTFD }, + { KF_TYPE_INOTIFY, PS_FST_TYPE_INOTIFY }, { KF_TYPE_UNKNOWN, PS_FST_TYPE_UNKNOWN } }; #define NKFTYPES (sizeof(kftypes2fst) / sizeof(*kftypes2fst)) diff --git a/lib/libprocstat/libprocstat.h b/lib/libprocstat/libprocstat.h index 3fb73114e9c4..39e971d9abaf 100644 --- a/lib/libprocstat/libprocstat.h +++ b/lib/libprocstat/libprocstat.h @@ -71,6 +71,7 @@ #define PS_FST_TYPE_PROCDESC 13 #define PS_FST_TYPE_DEV 14 #define PS_FST_TYPE_EVENTFD 15 +#define PS_FST_TYPE_INOTIFY 16 /* * Special descriptor numbers.