From nobody Mon Dec 13 01:00:57 2021 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 C1F3018D34DC; Mon, 13 Dec 2021 01:00:57 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JC3953bmfz3nvk; Mon, 13 Dec 2021 01:00:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5B6663345; Mon, 13 Dec 2021 01:00:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BD10vuU010207; Mon, 13 Dec 2021 01:00:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BD10vlA010205; Mon, 13 Dec 2021 01:00:57 GMT (envelope-from git) Date: Mon, 13 Dec 2021 01:00:57 GMT Message-Id: <202112130100.1BD10vlA010205@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: c14695417b84 - stable/13 - Add declaration for static export_file_to_kinfo() 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c14695417b8449665e3d99cd45150eb53a2d9e49 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639357257; 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=zEPa1bL7jSwEOjORNAyMvR2yD9d06HbdGar6psY4o24=; b=snmUA6tPW0uPEkyMwU9qoRtiqwYWjCPQZI61R4T27JxEkyQ+naFE7hM3Pi/1G/+Jw1xhTO uyWXNQT+sU/V7m4CWU6js/q0OzTRRi22/0SsGjnFELi38Qv7PJ2QfbEoikcy7KNrE7QV+I Ugs21z+kIxO8SV0tpm9YVMsiMZb4KQtduuFn7y8Rrt+Hc3QhW/6FlIHRPP9eahkqPVLO15 f1KggFPBxBU1gvfEFzKiqOJclVNKH7ql8L9+hU6Ca0isPrDgc9pH+MNPR5hmW+7eR/g0+k EvRgGFK+qDSK7XDp+lvL4xHlNdCt0QiyTD2KXpTUZY/dg1pV28qgYYPIrZfUiQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639357257; a=rsa-sha256; cv=none; b=vlGSeKGtuFagFTS2lk0p68TQhJkYaaSD+spjeZJ+1SGtDpxwGTsZ1tVh8koa1Ju9o5VEq1 eSwM9TgZYYebGigbx+JTXr1pF0HYJEFCdk5ejL0jNDezNNrMZejO27osyrUFBAGymy71YH LPnuJ/lPuvd8+JKMwHudqrhtynqhMfZvGy55VC2B093ySJRV2QSiL3kVrc5M3hKRI+/sWZ rzX4bnv1tNMEw5ZyDJ+TEgQjvTwASA8idXcRPj5tpJBFltv8VFG5At8aghAhF6jndCwZ9N 2NWLI4JfMHm4s/eOiT6VRuJy6H412568KJSqvuUCV+yhLRdsEZILgbQQ4WkEXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c14695417b8449665e3d99cd45150eb53a2d9e49 commit c14695417b8449665e3d99cd45150eb53a2d9e49 Author: Konstantin Belousov AuthorDate: 2021-12-06 17:42:20 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-13 00:58:22 +0000 Add declaration for static export_file_to_kinfo() (cherry picked from commit 6e51d61a96c09d7c6785844602d0bb67d30b7f21) --- sys/kern/kern_descrip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 794d72824cc9..5247f8f12e6a 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -107,6 +107,9 @@ VFS_SMR_DECLARE; static int closefp(struct filedesc *fdp, int fd, struct file *fp, struct thread *td, bool holdleaders, bool audit); +static void export_file_to_kinfo(struct file *fp, int fd, + cap_rights_t *rightsp, struct kinfo_file *kif, + struct filedesc *fdp, int flags); static int fd_first_free(struct filedesc *fdp, int low, int size); static void fdgrowtable(struct filedesc *fdp, int nfd); static void fdgrowtable_exp(struct filedesc *fdp, int nfd);