* [RFC] Discussion: VIDEO_NUM_DEVICES limit in v4l2-dev.c
@ 2026-08-02 4:54 Ali Nasrolahi
0 siblings, 0 replies; only message in thread
From: Ali Nasrolahi @ 2026-08-02 4:54 UTC (permalink / raw)
To: linux-media; +Cc: linux-kernel, mchehab
Hi everyone,
I'm working on a project involving high density video processing on a
single server using a large number of v4l2 loopback devices to route
virtual video streams to tenants.
While doing so, I ran into the hard limit imposed by `VIDEO_NUM_DEVICES`
(currently 256) in `drivers/media/v4l2-core/v4l2-dev.c`. Looking through
the code and git history, this limit has been there for quite a long time.
However, after searching the mailing list archives, I couldn't find any
previous discussion regarding this limitation.
May I ask:
1. Is there any internal design constraint that requires limiting the
number of V4L2 devices to 256 on modern kernels?
2. Has this limit been discussed previously, or is there any relevant
discussion that I may have missed?
If the current limit is no longer intentional and there's no historical
context that I might've missed, I'd be happy to work on a patch series to
address it, and I would appreciate any guidance on the preferred direction.
Cheers,
-Ali
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-02 4:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-02 4:54 [RFC] Discussion: VIDEO_NUM_DEVICES limit in v4l2-dev.c Ali Nasrolahi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox