From nobody Mon Dec 06 20:18:33 2021 X-Original-To: dev-commits-src-all@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 DF69E18CCC83; Mon, 6 Dec 2021 20:18:33 +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 4J7FB147B2z4pw1; Mon, 6 Dec 2021 20:18:33 +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 6EFCE125D1; Mon, 6 Dec 2021 20:18:33 +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 1B6KIXh9087175; Mon, 6 Dec 2021 20:18:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B6KIX4k087174; Mon, 6 Dec 2021 20:18:33 GMT (envelope-from git) Date: Mon, 6 Dec 2021 20:18:33 GMT Message-Id: <202112062018.1B6KIX4k087174@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 6e51d61a96c0 - main - Add declaration for static export_file_to_kinfo() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 6e51d61a96c09d7c6785844602d0bb67d30b7f21 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638821913; 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=MiObPel3bfHobp7i3uESJRd+b0GD1QfUxAmuXHITu38=; b=oPHZIbUZVoWSvfDJxc2mkuKABYlmNTcXWvmB+e7dFsMq6q0BjWV/KspZaJQ+CUgBAPj/Dh 72ugnsmkqNzKbji5M66BZHFQy+vI5oZpuYsXOv1Csy+RTni7OR2B1WlVRGI/tZ1QhlkFcb 6fQFKXB+IqXct61eTVZqTtTJU8uR+mrUxMoMME28A1tkDUlrLctjqVaq+jbcNAt15b6+Ab 5/ZMf+m2sK+m6RQScSGZ/waqFNdOyHv+4sdaGK/o3XjRJXzJ8IR+IqxrNNcHSuv3IqOaBa mGr+3RN7pcZp8ngVgXIh8V4zrZdYfUZSBN9bk/2pljj4t/ttAquIH375sXS07Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638821913; a=rsa-sha256; cv=none; b=iXO6JynZfz5qy0QiLdOjD7Vck7yTLVEto2yn8fZTm+iT11IJE0YI3r27MCNPkhxP8tMW4A oWzIcKqiiX1+SIpLl48OfjxMgpn7gruP4MQZtizF6byqz7V6B2BAHHjS8OwE8t6ySGhAxj 1yHwBQDSU4t9vCGt1RdA8SkSJPTGmspUrOz0KNsQWiv6KPHjZwzXdb6QdBuybvI8p90IUm kgtkSNn1dyX3UWsiHCh2Nn1rflAmyvgN+rC2trdB5A41n3rysUaLzhFAU82Plz9x6zqajU QMoghP9qhhh0OVLjToWbJ4HbHssJSkZZ2B7RLuvWW7zLGov2yQCkV1dtg15t/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6e51d61a96c09d7c6785844602d0bb67d30b7f21 commit 6e51d61a96c09d7c6785844602d0bb67d30b7f21 Author: Konstantin Belousov AuthorDate: 2021-12-06 17:42:20 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 20:18:09 +0000 Add declaration for static export_file_to_kinfo() Reviewed by: jhb, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33277 --- 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 37fec097dcfc..8970e80a9818 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);