From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5334125B088; Tue, 2 Jun 2026 20:00:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780430428; cv=none; b=HjCYlfCiTIUchlRIjmY5QQcIe+sgiPeMDOohvfAaLz630njj8HHWe1RenFJ6dtzWLC2jUEj58p10kYOxOJxccNRFkkZpg8Xkuja50nqKr5NkM7NKKvM/WSe0BE09hnQ9wmJWFt0IVtWTISGJHTm9EzUD8+crnVV8oSdYWPLIAqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780430428; c=relaxed/simple; bh=YCXEpa08KnLDcAtvIVLebI1Fa6o34B4vWsrvIJpO+z8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Raf0LknIwhZ7PKptNi37uAe15PMk9VDw76s06Tc383sb/OOk+SMVBVICQ9w6HNwsgcysTcG+4Qm+ugXAKGI4iWWCvg69j5H981GN0zRmqpnjmhtpWBjR6Jn19lmxqOyvfAkLQQFprmMoU9SKSxhdCTf7VmRECLem/xiiotTjJIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LeEIdTKY; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LeEIdTKY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F2D11F00893; Tue, 2 Jun 2026 20:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780430427; bh=28uFiFaPz00034N6mbPxIg597Anz/KiVjczsmXdtiAU=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=LeEIdTKY/sRuBIGhNCn+pS2TNWw25Ld/g5eQxQCDyWFc+FNTxNMXfFaoQi8MlAjyd B66U1MCiOZ0PKEiNE1SQxpRCmU+bL28cKfphN1KehuxXCYr3DcZNxqrFBgTIdfl9x3 8ULZYWYbF4zch7yZ8n3NIlSZsh2TTH+rze/qtz+l6g/lHdcWJmu4nQZe2s3CbmB5Qd aNCY5f1trWFsIeOaA85aS9mQWxcJLOCkCqSZAA7glUk9FfTW2YXGKOJdUwBbSKycIs GAhSCasKdJTNMz0bknZH7WluSY9R2gFNe71Iyyckyh9pK8P2JQxQsMRw9kU0s2IKX2 6c0PRvm1INsuA== Date: Tue, 2 Jun 2026 13:00:25 -0700 From: Jakub Kicinski To: Alice Ryhl Cc: Carlos Llamas , Greg Kroah-Hartman , Andrew Lunn , Donald Hunter , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Matthew Maurer , Miguel Ojeda , Boqun Feng , Gary Guo , "=?UTF-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Christian Brauner , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v6 2/3] rust: netlink: add raw netlink abstraction Message-ID: <20260602130025.4df4e5d3@kernel.org> In-Reply-To: <20260529-binder-netlink-v6-2-92dd74b6a32e@google.com> References: <20260529-binder-netlink-v6-0-92dd74b6a32e@google.com> <20260529-binder-netlink-v6-2-92dd74b6a32e@google.com> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 29 May 2026 13:28:39 +0000 Alice Ryhl wrote: > This implements a safe and relatively simple API over the netlink API, > that allows you to add different attributes to a netlink message and > broadcast it. As the first user of this API only makes use of broadcast, > only broadcast messages are supported here. > > This API is intended to be safe and to be easy to use in *generated* > code. This is because netlink is generally used with yaml files that > describe the underlying API, and the python generator outputs C code > (or, soon, Rust code) that lets you use the API more easily. So for > example, if there is a string field, the code generator will output a > method that internall calls `put_string()` with the right attr type. Acked-by: Jakub Kicinski