From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E27172BE05A for ; Fri, 24 Apr 2026 15:14:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777043664; cv=none; b=XWBE+6BVhY+X/W08lhvS6Q8Mh9zq1NrtjQ64RScPsNCpHbQfkcSlXcsVZLoWzsvx4Td4Lv4ZLjo+xpdh2yRw1p5uo7IX17M9Q1joDnGVCMdy7UhZQv9tsokwxO46hrsIL9RzCU3ZrM9VbL/mAv4q/NZYoVdQAwonpOL+6ZcXjmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777043664; c=relaxed/simple; bh=3Vr+G5/sfV71G+m+azhJh2hzauLWbcMkhpq1LDpf/HU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RKxPKMJbFVMaMNWgOelTr3dKHNYgZGhJ4D4gtEgES3ma0bLrwuSYTYqhiHqTnib3wPQCGkpSRRAY5KXMVO5i9R8PVJ5gTCrYWyyHKcmoCcLQspoYRER/C8gO/Y9mMnZ5pL4895MdgSLWhrz7adRmgLtoa7yiVdHTmJ5N8DfMW/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=dePqNvuh; arc=none smtp.client-ip=95.215.58.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="dePqNvuh" Message-ID: <83dcad1d-5c0b-4b4f-a9e3-ef962cfde9eb@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1777043660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3Vr+G5/sfV71G+m+azhJh2hzauLWbcMkhpq1LDpf/HU=; b=dePqNvuhL1GrSYynem9cvEFEzhZts9U3er/geGeOGdnJmra8W82CFSwL5xlErn1YS2E5k9 tGwZ/wtd8i1AVFNs8ZHutl+PPNCAdLU6pv+/FyWou24i8Yj8uhkZrVW9eKr6bY/bCcVSIy +wn2FqWhumlh5qG17IBK5Gh8B1dfIPo= Date: Fri, 24 Apr 2026 23:14:06 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 4/4] rust: xarray: Add Guard::find() helper To: Andreas Hindborg , Miguel Ojeda , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Alice Ryhl , Trevor Gross , Danilo Krummrich , Lorenzo Stoakes , "Liam R. Howlett" , Tamir Duberstein Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, =?UTF-8?Q?Onur_=C3=96zkan?= References: <20260417-tyr-ioctls-deps-v1-0-41c6e9bb061c@linux.dev> <1TcoEoC6DnctfKo9mZsuxSJtZ02ujRRd7O0Jxu62xR0JPeJcq2hB7XD1qBbjleyTBRMWf-uy0HLh7lWkYXbaMw==@protonmail.internalid> <20260417-tyr-ioctls-deps-v1-4-41c6e9bb061c@linux.dev> <87se8kh9f5.fsf@t14s.mail-host-address-is-not-set> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Alvin Sun In-Reply-To: <87se8kh9f5.fsf@t14s.mail-host-address-is-not-set> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 4/24/26 19:42, Andreas Hindborg wrote: > "Alvin Sun" writes: > >> Add a helper to find the first present entry in the XArray. >> >> Returns the index of the first present entry, or None if the array >> is empty. >> >> Signed-off-by: Alvin Sun > I submitted a similar patch a while back as part of the dependencies for > rust null block [1]. Could you check if you could use this patch for > your use case? > > Best regards, > Andreas Hindborg > > > [1] https://lore.kernel.org/all/20260209-xarray-entry-send-v3-7-f777c65b8ae2@kernel.org/ Sure. Looks like Tamir has already told me about this patch series. I'll try it later. Best regards, Alvin >