From: Jakub Kicinski <kuba@kernel.org>
To: Qingfang Deng <dqfext@gmail.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Alexander Lobakin <aleksander.lobakin@intel.com>,
Breno Leitao <leitao@debian.org>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Kees Cook <kees@kernel.org>
Subject: Re: [PATCH net-next] net: add netdev_from_priv() helper
Date: Thu, 19 Mar 2026 13:27:31 -0700 [thread overview]
Message-ID: <20260319132731.504d34dd@kernel.org> (raw)
In-Reply-To: <20260319022608.323969-1-dqfext@gmail.com>
On Thu, 19 Mar 2026 10:26:08 +0800 Qingfang Deng wrote:
> +/**
> + * netdev_from_priv - get network device from priv
> + * @priv: network device private data
> + *
> + * Get network device from private data pointer
> + */
> +static inline struct net_device *netdev_from_priv(const void *priv)
> +{
> + return container_of(priv, struct net_device, priv);
When you repost this with a user please format the kdoc as:
+/**
+ * netdev_from_priv() - get network device from priv
+ * @priv: network device private data
+ *
+ * Returns: net_device to which @priv belongs
+ */
prev parent reply other threads:[~2026-03-19 20:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-19 2:26 [PATCH net-next] net: add netdev_from_priv() helper Qingfang Deng
2026-03-19 17:12 ` Andrew Lunn
2026-03-19 20:27 ` Jakub Kicinski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260319132731.504d34dd@kernel.org \
--to=kuba@kernel.org \
--cc=aleksander.lobakin@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=dqfext@gmail.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kees@kernel.org \
--cc=leitao@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.