From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2FAB13AA27 for ; Wed, 2 Apr 2025 05:38:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743572331; cv=none; b=fRtz5fJfAGb6QuCDK13MXqzqwqHeMkzEF8eZbXshz3/LlirdKXd0TogSRNnVkFh8zotrxNmxWRA6vymq8LHkw9vLcTlbh0lcswoKjdhJYLr2Nix3Hr6Q19fa/O373j7e85bZYV+sZAQPq6qKE+Ic1YAVVMi0zr6OLa+fa8eAGRw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743572331; c=relaxed/simple; bh=f34QjZVnu8zDvSB/1vNzylZB1VDSVA+UeoekNqo5kcA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=dnJukJa7D0cMGXUGAXKld9EapPb4T5xvNkPueRFbRREAxsIS8jMu9JAWyMAaAPG3WsBdj8RT+Ftd2hJnwwO3O9X5mJWdcn0sPJgh1B+FCXdMRcQOSbdvkNEusU2SC5Hn7PAW/cS1MAg73RahbtbPeltOQv/1MYllCQPq3DMqsKM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=PkB1nfrW; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PkB1nfrW" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-301c4850194so8876070a91.2 for ; Tue, 01 Apr 2025 22:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743572329; x=1744177129; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zez2xuviDEokAGqGnmj+S14YixJPAJCgKo/4A9f+9EY=; b=PkB1nfrW4kuzzuxCJJi/QXy7F4ZZ859zPt32fZyoDRUmuPNI7FGlemPOAhqgp36iX2 ckY/lomf9loPnEsTqzmw73mzDratpwBNIIqspzKX1n2Xhn0zmZrypO2HNzJttfCRNR8l NUmY/gl+aempSc2BKFoByUkJaOnpcPRS+MUF2+YZmDLGFQUne8Yvvr9/BEwSl7IsHdf3 HOfMphI94TJd15n877mJPP4XsBi9hd8gf6QFiIJtRhNY93qyYGVB0dg2r8tmFDSvEExB BVvna/6FJdaPuV8cgqTcfNr14YuTSDfm+fmgrb264Jj5m1pg3Zx+kR5cK37WMdLfKSk9 2Vjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743572329; x=1744177129; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zez2xuviDEokAGqGnmj+S14YixJPAJCgKo/4A9f+9EY=; b=fPJH65S6NksvYUqiaeHxfQCq/t9b6DpBL22vsll21ES6Gm5KLCaM3NqMCXaAp4wk3t zj8pYkdkG70+7Kh+oGzJXJmjpbXZQsz0RA2wBWhtSaQ6FbWb35zrVcfW30dwgG6iEXbz HZYjgj4axGTUCOCFnFufvqO2fl0pZFTm7OT/xeB0SZB1hACcCk0CkA/DU0HkPSq8nlj5 uqjSSmn3j9bmoBDYjdgZRCB+eaJ/ZlgaS2sXMhm9U+NHsWPTmEBDaFa2XsFyHZoTQuC8 thlibfcUIU/n0dfHzbiGKispuV7jK89QN/XgZxuImz80ZJwT91VJJSLFvRCX65uZi+mE +IYA== X-Forwarded-Encrypted: i=1; AJvYcCW4Ve1xfGryuet5wNLd65+OlZwijlqo2xWznh0+pl+7Ty39bP5tYVXCHn33o1ws58W1Lo7v5HUuaLJ6onrMzg==@vger.kernel.org X-Gm-Message-State: AOJu0YwyUtpSxcT0v2xQXQkkXoutAL8dr5Hizvm95Vt2TY/jQ0d49BT8 XWtEGLrW8s2XUrmS+CeWiGVg40AlJ9zmoeByf65c4K0DgiZmSk0SD3++z9OHwZg= X-Gm-Gg: ASbGncsXx4IJLUwCqzXLPG91rve1jkHtYbDo9SyWu3B34KMP0uQGE3bk6mlOj0PHjL7 zHfAcmrVQWb85znH3TRPUCWIYe8kCADm1x2kLm+lpU23rY1GWzuD9v1G56Ue12M8Gmldgo60Dbv nHDPVxwFpFA3Gy0jSi2c9SkTgwMfcqGOJy5wNadEoXZZulEKAZN8Xcq9V24ikTyI3Nq4S2khurR vXnB08jRFvPyhQtCBX1h4TJ+0PqNFyftysbrH/fGIl3JxT623FjP7bHEQlKjNESbLzzekYGN6su NrfJToaKKeKrnzj2AT1r7YNFLomyOFA6+mRqOXhjCn5WlA== X-Google-Smtp-Source: AGHT+IGH1hzGwQPu9MUSODpNVNiblGulmScpiDxx4Hqd+I2N6vWJRXpxsrODcivVP3CvpfnRyXSS2w== X-Received: by 2002:a17:90b:574b:b0:2ee:9b09:7d3d with SMTP id 98e67ed59e1d1-305320af3e0mr20394191a91.19.1743572329064; Tue, 01 Apr 2025 22:38:49 -0700 (PDT) Received: from localhost ([122.172.83.32]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3056f83baefsm634769a91.11.2025.04.01.22.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 22:38:48 -0700 (PDT) From: Viresh Kumar To: Yury Norov , Rasmus Villemoes , Alex Gaynor , Alice Ryhl , Andreas Hindborg , Benno Lossin , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Boqun Feng , Gary Guo , Miguel Ojeda , Trevor Gross , Viresh Kumar Cc: linux-kernel@vger.kernel.org, Danilo Krummrich , rust-for-linux@vger.kernel.org, Vincent Guittot , Burak Emir Subject: [PATCH V4 0/2] Rust: Add cpumask abstractions Date: Wed, 2 Apr 2025 11:08:41 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello, This series adds initial cpumask Rust abstractions and adds a new maintenance entry for the same. V3->V4: - Create separate entry for cpumask in MAINTAINERS. V2->V3: - Improved comments, SAFETY, Invariants, and INVARIANT blocks. - Add examples. - Inline few methods. V1->V2: - Add Yury's Reviewed-by tag in 2/2. - Implemented two different structures, Cpumask (corresponds to struct cpumask) and CpumaskBox (corresponds to cpumask_var_t). Thanks Alice for helping out. -- Viresh Viresh Kumar (2): rust: Add initial cpumask abstractions MAINTAINERS: Add entry for Rust bitmap API MAINTAINERS | 6 + rust/kernel/cpumask.rs | 301 +++++++++++++++++++++++++++++++++++++++++ rust/kernel/lib.rs | 1 + 3 files changed, 308 insertions(+) create mode 100644 rust/kernel/cpumask.rs -- 2.31.1.272.g89b43f80a514