From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f73.google.com (mail-ed1-f73.google.com [209.85.208.73]) (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 D66CD3955CD for ; Mon, 1 Jun 2026 09:46:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780307170; cv=none; b=FbUS10HbFjJEl1ZXXTe83LzFnyGhN+1n6MfnfoA0+gEd98U8RiIS+Fo/3Dy/wx+kv8gf22yPvKpFyLyn1XCelz8uWSI7SQTbRYOuEzD5IkjV9at1HEnNPNLJ79uWM+A4oDtObFwzKK+sScIIceLDkN0m9hkTLSb+E4Dg/eDb/bk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780307170; c=relaxed/simple; bh=cV18jvtNXIodO6tysPsBXW0X3xVvWrtNzux1ufx6488=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=F/NE/RgyFkoG+CrDE9kBnLe4ynp3zajtaooyj0rH5J1wVVBWGlNB65FOktUJDUDPWAoi/cw6BB8cmQ75wRufN/UYfZZ5FScAz8yfJ3bbsTTEHD0aspTMuy5w+3CDK8N2EwFyjLJnVFBn1wNnauElm5nieqwn5Qt5OJmOw1W3km8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Df+gsVdw; arc=none smtp.client-ip=209.85.208.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Df+gsVdw" Received: by mail-ed1-f73.google.com with SMTP id 4fb4d7f45d1cf-68d232e0b92so1203874a12.0 for ; Mon, 01 Jun 2026 02:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1780307162; x=1780911962; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=F2mLiP05KImuXhLYRlm3itUuIPBG7j9sX+uByjRaID4=; b=Df+gsVdwnaFnn3ZIHTyclLRbocaC0Vij9gUEXBbEsqwia8hx88vkEF6PrH925lg2F4 TNkNWB+rjEQ85OPUwZMIbeilLRRRm14mpIG9XQimhC4/GyBjiJxX1Aq6e0IjJGdhoaXQ 9RuaIevv3hHB2IozWJsYLF11si7iA7x1zS18ujoIoDAfzCEcwxt9UKFWEJEq36f/xzuH Unqlf+CvnkFLsRaKk4qu5Lw1T7bUOU/kOBwZ4Po9HiGaTEte9T1rFXm4IUUrcTFF0/NX r1QWy5Y/KUoYfUZcBqBlklb8mSemf/5OM6lWVqyNBvGgO0aFoiVE8tLrjCFBVdF1Ijei PGNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780307162; x=1780911962; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F2mLiP05KImuXhLYRlm3itUuIPBG7j9sX+uByjRaID4=; b=ftrzoM4RCo5sm8xcYfM3gaB2QKGU1INYUSLzsHtF0yxpsNN1m6lT8nJLYAt2kkhLw/ By9f8+VCLPcpeUGfU1hDA5Sa/bq0yV6Hbm3WWDx1HkhEVnzNAx2XJRxyi2uzn2mwitch l/3YOBjXzpozgC5JE220YC4hiwFD3e1opIupciIwzoCBFzg5TI63ky3fzgrPJRtCrpeq awoo9TWd1JyzfLyz05veQLEyEoJJAvhlJgcia1SbYhgbte4PJjsvj9Iv3TRVZSyZAN+N FBP0LbiC2V0K3k/YfvWliYzCax8xEVdn2kmrQSVrNx9LDhMOVDxrniEH1yo2+96grEUh cPjg== X-Forwarded-Encrypted: i=1; AFNElJ8zPY+E5fQZ2xxnY00w+8hU3WPkTApRxl4ahKBX4mNpP099D8j9J+DBvfNiNSXLscR+M6466mlqffr3a20=@vger.kernel.org X-Gm-Message-State: AOJu0YwObxjw2ePcLEY/wRimjJhxxxB/QVbb2hC6ILbUtiFKOpwOWBoq OMiz6xjFNnrJwPbErmrx1HIxVSAfaBf98mXr6z/9XJiLDDGJMRCmmMugloxKHaxcS86MmiPP8Ut XUqZ5kAocCRN7/o8huA== X-Received: from ejcmy11.prod.google.com ([2002:a17:906:5a4b:b0:beb:3773:86c7]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a17:907:e158:b0:beb:7979:47dd with SMTP id a640c23a62f3a-beb797959f7mr242224566b.27.1780307161830; Mon, 01 Jun 2026 02:46:01 -0700 (PDT) Date: Mon, 1 Jun 2026 09:46:00 +0000 In-Reply-To: <20260530143541.229628-3-phasta@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260530143541.229628-2-phasta@kernel.org> <20260530143541.229628-3-phasta@kernel.org> Message-ID: Subject: Re: [PATCH 1/4] rust: types: implement ForeignOwnable for ARef From: Alice Ryhl To: Philipp Stanner Cc: Miguel Ojeda , Boqun Feng , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Sumit Semwal , "Christian =?utf-8?B?S8O2bmln?=" , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Uladzislau Rezki , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Daniel Almeida , Greg Kroah-Hartman , Igor Korotin , Lorenzo Stoakes , Alexandre Courbot , FUJITA Tomonori , Krishna Ketan Rai , Shankari Anand , manos@pitsidianak.is, Boris Brezillon , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, rcu@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Sat, May 30, 2026 at 04:35:09PM +0200, Philipp Stanner wrote: > From: Danilo Krummrich > > Implement ForeignOwnable for ARef, making it possible for C code to > own an ARef. > > Since ARef represents shared ownership, BorrowedMut is &T rather than > &mut T, matching the semantics of the underlying reference-counted type. > > Signed-off-by: Danilo Krummrich Reviewed-by: Alice Ryhl