2016-07-05 13:37:31 +00:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
.. _CA_SET_PID:
|
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
==========
|
2016-07-05 13:37:31 +00:00
|
|
|
CA_SET_PID
|
|
|
|
==========
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Name
|
2016-07-05 10:58:48 +00:00
|
|
|
----
|
2016-07-05 13:37:31 +00:00
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
CA_SET_PID
|
2016-07-05 13:37:31 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
|
|
|
|
Synopsis
|
2016-07-05 13:37:31 +00:00
|
|
|
--------
|
|
|
|
|
2016-08-31 18:59:14 +00:00
|
|
|
.. c:function:: int ioctl(fd, CA_SET_PID, struct ca_pid *pid)
|
2016-08-19 19:56:15 +00:00
|
|
|
:name: CA_SET_PID
|
2016-07-05 13:37:31 +00:00
|
|
|
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Arguments
|
2016-07-05 10:58:48 +00:00
|
|
|
---------
|
2016-07-05 13:37:31 +00:00
|
|
|
|
2016-08-19 19:56:15 +00:00
|
|
|
``fd``
|
|
|
|
File descriptor returned by a previous call to :c:func:`open() <dvb-ca-open>`.
|
2016-07-05 13:37:31 +00:00
|
|
|
|
2016-08-19 19:56:15 +00:00
|
|
|
``pid``
|
2016-08-31 18:59:11 +00:00
|
|
|
Pointer to struct :c:type:`ca_pid`.
|
|
|
|
|
|
|
|
.. c:type:: ca_pid
|
|
|
|
|
|
|
|
.. flat-table:: struct ca_pid
|
|
|
|
:header-rows: 1
|
|
|
|
:stub-columns: 0
|
|
|
|
|
|
|
|
-
|
|
|
|
- unsigned int
|
|
|
|
- pid
|
|
|
|
- Program ID
|
|
|
|
|
|
|
|
-
|
|
|
|
- int
|
|
|
|
- index
|
|
|
|
- PID index. Use -1 to disable.
|
|
|
|
|
2016-07-05 13:37:31 +00:00
|
|
|
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Description
|
2016-07-05 10:58:48 +00:00
|
|
|
-----------
|
|
|
|
|
2016-08-19 19:56:15 +00:00
|
|
|
.. note:: This ioctl is undocumented. Documentation is welcome.
|
2016-07-05 10:58:48 +00:00
|
|
|
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Return Value
|
2016-07-05 13:37:31 +00:00
|
|
|
------------
|
|
|
|
|
|
|
|
On success 0 is returned, on error -1 and the ``errno`` variable is set
|
|
|
|
appropriately. The generic error codes are described at the
|
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|