From nobody Thu May 16 17:53:48 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 4VgHlJ6Y8Rz5LcLs; Thu, 16 May 2024 17:53:48 +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 4VgHlJ61Fwz4TfB; Thu, 16 May 2024 17:53:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715882028; 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=XS6/waLsJdYK/cLgPZ2S1QytsV5yUWbVPYIVpC5CW/0=; b=yAeNyS4blfwF8QmFzXHbgQkyqvQtKrjOf7IhCB9eNN0SwWCaPSpgLsoOEZSQw12YX6NrNZ qd9z/JIWr/X8MyLZIn/C5WVf6ABw9bEP01vSBEgBfqm52ViZ4jvOqq77Mf8mg2DNTJEvab ZyM/5olwqrP0uqRXIygm0g6S2J4jMfNXvlbW6DkxI5G4XEkISqLlZnsljpt0YdQobGkyqR XmxAYi3vRQ+E3vG0RfN/sv6h8dxJk1fzDVLGoFNUaFODneIorYxBUC+UgUGM1KcB9oaMU+ Bn9G5yd4TuXDKnaKSRERb1n4R+wkrDKgtADj3bEXOmPR1oPAQ7nG2axwtc8yKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715882028; a=rsa-sha256; cv=none; b=x47pCmy7E1hsq0gZJd05Qf2PBl7MZA2cbKmYJc6mHKH2Wsw2GcniQxUXMBEquxr5oA7FcL 5CmIBV5491UbbZr5rzqhWPIDM4NRhWu1NjQf1E+inWGJLl1Pj3uv0G9RJrcM+E61XhotLp z88gzTbQtZGED5QWi6BS3VYZe0kwZx4pvZyNkFu5mEMRuEDMXYx7hyxz7Axr+h7fJ71eLf Ope4JVizeEqycOgRLRSut/En1zYIOH2MQdWWgCnr5ibUt769w3MDigCeGrgm0cbiJ/rp5a 2R/9Gxkrvmm+TkBXE/xBXdkZCOoUusc37KE4Wwvu7BhWovQypxXRx4ivG4d4rQ== 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=1715882028; 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=XS6/waLsJdYK/cLgPZ2S1QytsV5yUWbVPYIVpC5CW/0=; b=DMNaQISzpIRuUShXH0Mdjh1LaTZ41uWp4HuPD+VG0Db/FOZ+2t+CY8CsAMVy58qO4f+Zon e0AW0NAkbE6MLNFPiD8agL3aAYS61kaYVStv8MrSzJ8s0JKVPa075ymN+zAPWMhJxxmxNA fgToyX1VEKRxCx4eMzraZsqGrRobEX91GfNGmNMkT855DJoxoI8y9vcDdYwbVFhZf34Qv2 Wd2sXgHuQob2jqdpAdqWmDZSKaPC272kgyFqHs8pytGUgzYYtoHlYKGSc8jIJ30Uaz+J2M oXsMDedZiDRpzaRiEYPOk5Hfz4VXAmZMzv9cOmUavt6ta38KI3x3pWk12LdSVQ== 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 4VgHlJ5cjPz17QZ; Thu, 16 May 2024 17:53:48 +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 44GHrmgl003123; Thu, 16 May 2024 17:53:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44GHrmWg003120; Thu, 16 May 2024 17:53:48 GMT (envelope-from git) Date: Thu, 16 May 2024 17:53:48 GMT Message-Id: <202405161753.44GHrmWg003120@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: 53725168e1b6 - main - SysV SHM: move SHMSEG constants to sys/shm.h 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 53725168e1b631be0e60f888ba5e63e140b57766 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=53725168e1b631be0e60f888ba5e63e140b57766 commit 53725168e1b631be0e60f888ba5e63e140b57766 Author: Konstantin Belousov AuthorDate: 2024-05-16 15:24:00 +0000 Commit: Konstantin Belousov CommitDate: 2024-05-16 17:53:31 +0000 SysV SHM: move SHMSEG constants to sys/shm.h There are planned consumers in linprocfs. Tested by: Ricardo Branco Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D45175 --- sys/kern/sysv_shm.c | 4 ---- sys/sys/shm.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 2529a9eeb1a7..8f67cb63f33c 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -109,10 +109,6 @@ FEATURE(sysv_shm, "System V shared memory segments support"); static MALLOC_DEFINE(M_SHM, "shm", "SVID compatible shared memory segments"); -#define SHMSEG_FREE 0x0200 -#define SHMSEG_REMOVED 0x0400 -#define SHMSEG_ALLOCATED 0x0800 - static int shm_last_free, shm_nused, shmalloced; vm_size_t shm_committed; static struct shmid_kernel *shmsegs; diff --git a/sys/sys/shm.h b/sys/sys/shm.h index 0b5cba0120e5..9c6dad5d43cc 100644 --- a/sys/sys/shm.h +++ b/sys/sys/shm.h @@ -152,6 +152,10 @@ struct vmspace; extern struct shminfo shminfo; +#define SHMSEG_FREE 0x0200 +#define SHMSEG_REMOVED 0x0400 +#define SHMSEG_ALLOCATED 0x0800 + void shmexit(struct vmspace *); void shmfork(struct proc *, struct proc *);