From nobody Thu May 23 19:42:13 2024 X-Original-To: dev-commits-src-main@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 4Vldq960n8z5L9TM; Thu, 23 May 2024 19:42:13 +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 4Vldq93RLXz55Q3; Thu, 23 May 2024 19:42:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716493333; 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=6FIL8E/0gOsibB6bUvKofQc5PKWAJWQy7dFZwG0m3Mk=; b=RSON6QUFvgp+l6mI83PvmrdQpH1Pqxj+1wmc/qLulaHQRuzjRsBEVs55WbgBlWRfQql7Ph C+yMX10v88ch6BTOu+OASPo1wTv2JLvcv4SdBo3oNfv88KMPNLwUGoQ3jKw9ekdA0UwvmY pbdfGb6byzAaUyGxiYH+Y8TeWt16lIUdvoT6hpQIxJpRZsnzAEatwdq+c4RnXaCD2RUKdn W30fsr0fXG/EqY5w4XRD9gJ/aGbWXTLGxfaGYJVTf1YBxvTp/KiriutUl6lIajuKlGUDfO SgvsJm7nOFl/0FD9Gm20XmNNLIHX/L+8nYMdJ1VPE73gd7bqccVChuJfM4NaGw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716493333; a=rsa-sha256; cv=none; b=XPR1808xznKmNvi2Z/JXhEGHue64xRvAkUCHcOQYMWehbVZhFl7JPsUyyHPbDsPScNdStA z5r6yHInjv3E2t/JOQb420o0zBTpzQahag4bN5HAAnYBG6toX+QH15yaIIjJCoQTfFIT7j G7zL8ZLR64gMZhVZhRxuGBui7cw2ITKffmUK2tLmkGdPdhaWZK7v+nXQzLUwHSII6cU/P0 iEMzFSRWH+VkrmnVfSaRD7IEwDW173pVk4VsWe5YmVYHs2mpQi9jjusvk5+lXV8QsncGB5 DRoWzy5IbZ60AykaaJe+UXR6GyFW8bDGPYuSmsuwiUeB3grx/t7QfMf7HhU8XA== 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=1716493333; 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=6FIL8E/0gOsibB6bUvKofQc5PKWAJWQy7dFZwG0m3Mk=; b=BoOPKvYEXbwjpXQl0+J5uKnqWbCWzOjqhKpkvBV1HvTpMvI5pO8PgpUasfIMc1BzkWOnxT myVVEITk7u5UijmGUblrcLBQnYX4XBsit6SblSSVFCVyeem5pib23bS6mwq9QcsoEqJoT7 fIvx6w8u+35I0ReKUT8e8mMCmC+e9czUHiL9BbhYHnERQh6HW3btB1VdeGf6NBj/5aifAp wr3yTX5W6t61GnbU75+ehuP3/6BfEztsQGuGrSrz/mKHkVNlSxXbYnNcEVSSAD7FEjGryn rQ4UamhKJt9rrcZhscXJalFSWZ3zHPFvx+IAuLOs5wzHi+EN+mtZH1dXqj7eNA== 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 4Vldq933MKz13Gb; Thu, 23 May 2024 19:42:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44NJgDNf082732; Thu, 23 May 2024 19:42:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44NJgDk4082729; Thu, 23 May 2024 19:42:13 GMT (envelope-from git) Date: Thu, 23 May 2024 19:42:13 GMT Message-Id: <202405231942.44NJgDk4082729@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 289b2d6a7980 - main - mqueue: Export some functions to be used by Linuxulator List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 289b2d6a79801f44adc787728cfc8219d39ec076 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=289b2d6a79801f44adc787728cfc8219d39ec076 commit 289b2d6a79801f44adc787728cfc8219d39ec076 Author: Ricardo Branco AuthorDate: 2024-05-17 20:31:16 +0000 Commit: Warner Losh CommitDate: 2024-05-23 19:40:46 +0000 mqueue: Export some functions to be used by Linuxulator Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1248 --- sys/kern/uipc_mqueue.c | 6 +++--- sys/sys/mqueue.h | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c index 9276c918565f..b48abf8788f6 100644 --- a/sys/kern/uipc_mqueue.c +++ b/sys/kern/uipc_mqueue.c @@ -2003,7 +2003,7 @@ notifier_remove(struct proc *p, struct mqueue *mq, int fd) PROC_UNLOCK(p); } -static int +int kern_kmq_open(struct thread *td, const char *upath, int flags, mode_t mode, const struct mq_attr *attr) { @@ -2223,7 +2223,7 @@ getmq_write(struct thread *td, int fd, struct file **fpp, fpp, ppn, pmq); } -static int +int kern_kmq_setattr(struct thread *td, int mqd, const struct mq_attr *attr, struct mq_attr *oattr) { @@ -2329,7 +2329,7 @@ out: return (error); } -static int +int kern_kmq_notify(struct thread *td, int mqd, struct sigevent *sigev) { struct filedesc *fdp; diff --git a/sys/sys/mqueue.h b/sys/sys/mqueue.h index 50f6681ce218..78f34c197c7e 100644 --- a/sys/sys/mqueue.h +++ b/sys/sys/mqueue.h @@ -38,8 +38,14 @@ struct mq_attr { }; #ifdef _KERNEL +struct sigevent; struct thread; struct file; extern void (*mq_fdclose)(struct thread *td, int fd, struct file *fp); +int kern_kmq_notify(struct thread *, int, struct sigevent *); +int kern_kmq_open(struct thread *, const char *, int, mode_t, + const struct mq_attr *); +int kern_kmq_setattr(struct thread *, int, const struct mq_attr *, + struct mq_attr *); #endif #endif