lib/includ.../dvb-dev.h(3)
π lib/include/libdvbv5/dvb-dev.h β Library Functions Manual π
okay bestie, gather round, because this is the page that makes your whole computer talk to Digital TV devices β¨ it's part of the libdvbv5 library, it lives at lib/include/libdvbv5/dvb-dev.h, and it is exactly the glow-up your DVB setup needed. no cap.
πΈ NAME πΈ
lib/include/libdvbv5/dvb-dev.h β Provides interfaces to handle Digital TV devices.
π¦ SYNOPSIS π¦
#include 'dvb-fe.h'
#include 'dvb-scan.h'
#include <linux/dvb/dmx.h>
π Data Structures
struct dvb_dev_listβ Digital TV device node properties.struct dvb_deviceβ Digital TV list of devices.
π§ Typedefs
typedef int(* dvb_dev_change_t) (char *sysname, enum dvb_dev_change_type type, void *priv)β Describes a callback fordvb_dev_find()
π Enumerations
enum dvb_dev_type { DVB_DEVICE_FRONTEND, DVB_DEVICE_DEMUX, DVB_DEVICE_DVR, DVB_DEVICE_NET, DVB_DEVICE_CA, DVB_DEVICE_CA_SEC, DVB_DEVICE_VIDEO, DVB_DEVICE_AUDIO }β Type of a device entry to search.enum dvb_dev_change_type { DVB_DEV_ADD, DVB_DEV_CHANGE, DVB_DEV_REMOVE }β Describes the type of change to be notifier_delay.
π Functions
struct dvb_device * dvb_dev_alloc (void)β Allocate astruct dvb_device.void dvb_dev_free (struct dvb_device *dvb)β free astruct dvb_deviceint dvb_dev_find (struct dvb_device *dvb, dvb_dev_change_t handler, void *user_priv)β finds all DVB devices on the local machinestruct dvb_dev_list * dvb_dev_seek_by_adapter (struct dvb_device *dvb, unsigned int adapter, unsigned int num, enum dvb_dev_type type)β Find a device that matches the search criteria given by this functions's parameters.struct dvb_dev_list * dvb_get_dev_info (struct dvb_device *dvb, const char *sysname)β Return data about a device from its sysname.void dvb_dev_stop_monitor (struct dvb_device *dvb)β Stop thedvb_dev_findloop.void dvb_dev_set_logpriv (struct dvb_device *dvb, unsigned verbose, dvb_logfunc_priv logfunc, void *logpriv)β Sets the DVB verbosity and log function with context private data.void dvb_dev_set_log (struct dvb_device *dvb, unsigned verbose, dvb_logfunc logfunc)β Sets the DVB verbosity and log function.struct dvb_open_descriptor * dvb_dev_open (struct dvb_device *dvb, const char *sysname, int flags)β Opens a dvb device.void dvb_dev_close (struct dvb_open_descriptor *open_dev)β Closes a dvb device.int dvb_dev_get_fd (struct dvb_open_descriptor *open_dev)β returns fd from a local device This will not work for remote devices.ssize_t dvb_dev_read (struct dvb_open_descriptor *open_dev, void *buf, size_t count)β read from a dvb demux or dvr filevoid dvb_dev_dmx_stop (struct dvb_open_descriptor *open_dev)β Stops the demux filter for a given file descriptor.int dvb_dev_set_bufsize (struct dvb_open_descriptor *open_dev, int buffersize)β Start a demux or dvr buffer size.int dvb_dev_dmx_set_pesfilter (struct dvb_open_descriptor *open_dev, int pid, dmx_pes_type_t type, dmx_output_t output, int buffersize)β Start a filter for a MPEG-TS Packetized Elementary Stream (PES)int dvb_dev_dmx_set_section_filter (struct dvb_open_descriptor *open_dev, int pid, unsigned filtsize, unsigned char *filter, unsigned char *mask, unsigned char *mode, unsigned int flags)β Sets a MPEG-TS section filter.int dvb_dev_dmx_get_pmt_pid (struct dvb_open_descriptor *open_dev, int sid)β read the contents of the MPEG-TS PAT table, seeking for an specific service IDstruct dvb_v5_descriptors * dvb_dev_scan (struct dvb_open_descriptor *open_dev, struct dvb_entry *entry, check_frontend_t *check_frontend, void *args, unsigned other_nit, unsigned timeout_multiply)β Scans a DVBdvb_add_scaned_transponder.static int dvb_dev_remote_init (struct dvb_device *d, char *server, int port)
π Detailed Description π
Provides interfaces to handle Digital TV devices.
Copyright
GNU Lesser General Public License version 2.1 (LGPLv2.1)
Author
Mauro Carvalho Chehab
Digital TV device node file names depend on udev configuration. For example, while frontends are typically found at /dev/dvb/adapter?/frontend?, the actual file name can vary from system to system, depending on the udev ruleset.
The libdvbv5 provides a set of functions to allow detecting and getting the device paths in a sane way, via libudev.
Bug Report
Please submit bug reports and patches to linux-media@vger.kernel.org
Definition in file dvb-dev.h.
π«Ά Typedef Documentation π«Ά
typedef int(* dvb_dev_change_t) (char *sysname, enum dvb_dev_change_type type, void *priv)
Describes a callback for dvb_dev_find() sysname: Kernel's system name for the device (dvb?.frontend?, for example) type: type of change, as defined by enum dvb_dev_change_type
Note β : the returned string should be freed with free().
Definition at line 121 of file dvb-dev.h.
π Enumeration Type Documentation π
enum dvb_dev_change_type
Describes the type of change to be notifier_delay.
Parameters
DVB_DEV_ADDβ New device detectedDVB_DEV_CHANGEβ Device has changed somethingDVB_DEV_REMOVEβ A hot-pluggable device was removed
Enumerator
DVB_DEV_ADD
DVB_DEV_CHANGE
DVB_DEV_REMOVE
Definition at line 106 of file dvb-dev.h.
π₯ Function Documentation π₯
int dvb_dev_remote_init (struct dvb_device * d, char * server, int port)
[inline], [static]
Definition at line 498 of file dvb-dev.h.
struct dvb_dev_list * dvb_dev_seek_by_adapter (struct dvb_device * dvb, unsigned int adapter, unsigned int num, enum dvb_dev_type type)
Find a device that matches the search criteria given by this functions's parameters.
Parameters
dvbβ pointer tostruct dvb_deviceto be usedadapterβ Adapter number, as defined internally at the Kernel. Always start with 0;numβ Digital TV device number (e. g.frontend0,net0, etc);typeβ Type of the device, as given byenum dvb_dev_type;
Returns
returns a pointer to a struct dvb_dev_list object or NULL if the desired device was not found.
struct dvb_dev_list * dvb_get_dev_info (struct dvb_device * dvb, const char * sysname)
Return data about a device from its sysname.
Parameters
dvbβ pointer tostruct dvb_deviceto be usedsysnameβ Kernel's name of the device to be opened, as obtained viadvb_dev_seek_by_adapter()or viadvb_dev_find().
Returns
returns a pointer to a struct dvb_dev_list object or NULL if the desired device was not found.
β Author β
Generated automatically by Doxygen for libdvbv5 from the source code.
and that's the whole page, bestie!! π
this diva of a manpage is from libdvbv5, Version 1.32.0, and it's the page for lib/includ.../dvb-dev.h(3). periodt. go build something iconic πβ¨
π¦ where this page comes from
- fedora 43: libdvbv5-devel 1.32.0-1.fc43 Β· LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note
- fedora 43: libdvbv5-devel 1.32.0-1.fc43 Β· LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms