From nobody Mon Feb 9 19:38:10 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6400C283FEA; Sun, 16 Nov 2025 11:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763292218; cv=none; b=Zr1x1/koLpCs2y4gGFAdnwfqneGfNcnH8KfwRof7rsjJgg28PujAh4utpc5qMfh1jlReDOxa3oStl5merHcUeoTmNWASoYAcbOzXsKEZNMcUnHkmzHa9TEuzFybZSTaeQh7FaOC01kXP2ClLgrWbc02PWitODsIoHieUvCXbvJo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763292218; c=relaxed/simple; bh=EHqiTl/gEFOctfX43h+L9XFYer9UoRGKk7O6CT/FANo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pPGvb5WXEi7UDhVNwxOZhBZTClmOvJdjONwqdv4nVb5oOiptXssY0/eyvn0KdXmPWEXjPpZng1PG+1DbXa+N6JDV6aWNF0cvmzqgffLB/lI7UI0dK9koIyKOR5KLHChgyvvRJBs00DuovIFChEY/D6MsNGDBQAteF0jhuuoxb9g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NqPqJIBw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NqPqJIBw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4AA6C4AF09; Sun, 16 Nov 2025 11:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763292217; bh=EHqiTl/gEFOctfX43h+L9XFYer9UoRGKk7O6CT/FANo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NqPqJIBwGuzNI4yCzjpPv9SoRUzoMSXlQV/EbFss8EAAmqNhR5Uw7lWVLxV+46glu Ps7YtQtfChFpVeeyar+XGkBMKqQuvke2C1ngFm/bq4Ql87FxL8kpWTxjff5CvuUCkw +Ekeo1NiVIk0vhZeiTjd0I3nANbuvLWdngZAz9E0WeY0BqTDaKPW8PB5oPIvhrHamC 8OnBEEdSdlNKxS7hA2u69LPz4LBnheFYBYrvLm3/wyTMe7bi8mBS4DELG3W3lgc7KU 9Bf+ssn4pMl+PViMJHgBnVJwbH2RKggU88/6Bt0CSopuVMgB42SjZsfD1CB8NVhpH4 15BDP38KJuFYQ== Received: from mchehab by mail.kernel.org with local (Exim 4.99) (envelope-from ) id 1vKar1-0000000Ffki-32jL; Sun, 16 Nov 2025 12:23:35 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Mauro Carvalho Chehab" , "Randy Dunlap" , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v3 2/2] docs: media: v4l2-ioctl.h: document two global variables Date: Sun, 16 Nov 2025 12:23:31 +0100 Message-ID: X-Mailer: git-send-email 2.51.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" The media kAPI has two global variables at v4l2-ioctl.h. Document them. Signed-off-by: Mauro Carvalho Chehab Tested-by: Randy Dunlap --- include/media/v4l2-ioctl.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index 6f7a58350441..ed63841a100c 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h @@ -663,7 +663,22 @@ void v4l_printk_ioctl(const char *prefix, unsigned int= cmd); struct video_device; =20 /* names for fancy debug output */ + +/** + * var v4l2_field_names - Helper array mapping V4L2_FIELD_* to strings. + * + * Specially when printing debug messages, it is interesting to output + * the field order at the V4L2 buffers. This array associates all possible + * values of field pix format from V4L2 API into a string. + */ extern const char *v4l2_field_names[]; + +/** + * var v4l2_type_names - Helper array mapping V4L2_BUF_TYPE_* to strings. + * + * When printing debug messages, it is interesting to output the V4L2 buff= er + * type number with a name that represents its content. + */ extern const char *v4l2_type_names[]; =20 #ifdef CONFIG_COMPAT --=20 2.51.1