Second series of ReST convert patches for media
Subsystems (3)
PATCH 10/54 doc-rst: linux_tv: use :cpp:function:: on all syscalls
In reply to Mauro Carvalho ChehabNow that we have one syscall per page, using :cpp:function::
cleans up almost all warnings, with is a great thing.
--- .../media/dvb/audio-bilingual-channel-select.rst | 2 +- .../linux_tv/media/dvb/audio-channel-select.rst | 2 +- .../linux_tv/media/dvb/audio-clear-buffer.rst | 2 +- Documentation/linux_tv/media/dvb/audio-continue.rst | 2 +- Documentation/linux_tv/media/dvb/audio-fclose.rst | 2 +- Documentation/linux_tv/media/dvb/audio-fopen.rst | 2 +- Documentation/linux_tv/media/dvb/audio-fwrite.rst | 2 +- .../linux_tv/media/dvb/audio-get-capabilities.rst | 2 +- Documentation/linux_tv/media/dvb/audio-get-pts.rst | 2 +- .../linux_tv/media/dvb/audio-get-status.rst | 2 +- Documentation/linux_tv/media/dvb/audio-pause.rst | 2 +- Documentation/linux_tv/media/dvb/audio-play.rst | 2 +- .../linux_tv/media/dvb/audio-select-source.rst | 2 +- .../linux_tv/media/dvb/audio-set-attributes.rst | 2 +- .../linux_tv/media/dvb/audio-set-av-sync.rst | 2 +- .../linux_tv/media/dvb/audio-set-bypass-mode.rst | 2 +- .../linux_tv/media/dvb/audio-set-ext-id.rst | 2 +- Documentation/linux_tv/media/dvb/audio-set-id.rst | 2 +- .../linux_tv/media/dvb/audio-set-karaoke.rst | 2 +- Documentation/linux_tv/media/dvb/audio-set-mixer.rst | 2 +- Documentation/linux_tv/media/dvb/audio-set-mute.rst | 2 +- .../linux_tv/media/dvb/audio-set-streamtype.rst | 2 +- Documentation/linux_tv/media/dvb/audio-stop.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-add-pid.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-fclose.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-fopen.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-fread.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-fwrite.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-get-caps.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-get-event.rst | 2 +- .../linux_tv/media/dvb/dmx-get-pes-pids.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-get-stc.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-remove-pid.rst | 2 +- .../linux_tv/media/dvb/dmx-set-buffer-size.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-set-filter.rst | 2 +- .../linux_tv/media/dvb/dmx-set-pes-filter.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-set-source.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-start.rst | 2 +- Documentation/linux_tv/media/dvb/dmx-stop.rst | 2 +- .../linux_tv/media/dvb/fe-diseqc-send-burst.rst | 2 +- .../linux_tv/media/dvb/fe-diseqc-send-master-cmd.rst | 20 +++++++++++--------- .../media/dvb/fe-dishnetwork-send-legacy-cmd.rst | 2 +- Documentation/linux_tv/media/dvb/fe-get-event.rst | 2 +- Documentation/linux_tv/media/dvb/fe-get-frontend.rst | 2 +- Documentation/linux_tv/media/dvb/fe-read-ber.rst | 2 +- .../linux_tv/media/dvb/fe-read-signal-strength.rst | 2 +- Documentation/linux_tv/media/dvb/fe-read-snr.rst | 2 +- .../media/dvb/fe-read-uncorrected-blocks.rst | 2 +- Documentation/linux_tv/media/dvb/fe-set-frontend.rst | 2 +- Documentation/linux_tv/media/dvb/fe-set-tone.rst | 2 +- Documentation/linux_tv/media/dvb/fe-set-voltage.rst | 2 +- .../linux_tv/media/dvb/video-clear-buffer.rst | 2 +- Documentation/linux_tv/media/dvb/video-command.rst | 2 +- Documentation/linux_tv/media/dvb/video-continue.rst | 2 +- .../linux_tv/media/dvb/video-fast-forward.rst | 2 +- Documentation/linux_tv/media/dvb/video-fclose.rst | 2 +- Documentation/linux_tv/media/dvb/video-fopen.rst | 2 +- Documentation/linux_tv/media/dvb/video-freeze.rst | 2 +- Documentation/linux_tv/media/dvb/video-fwrite.rst | 2 +- .../linux_tv/media/dvb/video-get-capabilities.rst | 2 +- Documentation/linux_tv/media/dvb/video-get-event.rst | 2 +- .../linux_tv/media/dvb/video-get-frame-count.rst | 2 +- .../linux_tv/media/dvb/video-get-frame-rate.rst | 2 +- Documentation/linux_tv/media/dvb/video-get-navi.rst | 2 +- Documentation/linux_tv/media/dvb/video-get-pts.rst | 2 +- Documentation/linux_tv/media/dvb/video-get-size.rst | 2 +- .../linux_tv/media/dvb/video-get-status.rst | 2 +- Documentation/linux_tv/media/dvb/video-play.rst | 2 +- .../linux_tv/media/dvb/video-select-source.rst | 2 +- .../linux_tv/media/dvb/video-set-attributes.rst | 2 +- Documentation/linux_tv/media/dvb/video-set-blank.rst | 2 +- .../linux_tv/media/dvb/video-set-display-format.rst | 2 +- .../linux_tv/media/dvb/video-set-format.rst | 2 +- .../linux_tv/media/dvb/video-set-highlight.rst | 2 +- Documentation/linux_tv/media/dvb/video-set-id.rst | 2 +- .../linux_tv/media/dvb/video-set-spu-palette.rst | 2 +- Documentation/linux_tv/media/dvb/video-set-spu.rst | 2 +- .../linux_tv/media/dvb/video-set-streamtype.rst | 2 +- .../linux_tv/media/dvb/video-set-system.rst | 2 +- .../linux_tv/media/dvb/video-slowmotion.rst | 2 +- .../linux_tv/media/dvb/video-stillpicture.rst | 2 +- Documentation/linux_tv/media/dvb/video-stop.rst | 2 +- .../linux_tv/media/dvb/video-try-command.rst | 2 +- .../linux_tv/media/v4l/vidioc-g-priority.rst | 4 ++-- 84 files changed, 95 insertions(+), 93 deletions(-)
Documentation/linux_tv/media/dvb/audio-bilingual-channel-select.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_BILINGUAL_CHANNEL_SELECT Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_BILINGUAL_CHANNEL_SELECT, audio_channel_select_t) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_BILINGUAL_CHANNEL_SELECT, audio_channel_select_t) Arguments
Documentation/linux_tv/media/dvb/audio-channel-select.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_CHANNEL_SELECT Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_CHANNEL_SELECT, audio_channel_select_t) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_CHANNEL_SELECT, audio_channel_select_t) Arguments
Documentation/linux_tv/media/dvb/audio-clear-buffer.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_CLEAR_BUFFER Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_CLEAR_BUFFER) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_CLEAR_BUFFER) Arguments
Documentation/linux_tv/media/dvb/audio-continue.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_CONTINUE Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_CONTINUE) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_CONTINUE) Arguments
Documentation/linux_tv/media/dvb/audio-fclose.rst +1 -1
@@ -15,7 +15,7 @@ DVB audio close() Synopsis -------- -.. c:function:: int close(int fd) +.. cpp:function:: int close(int fd) Arguments
Documentation/linux_tv/media/dvb/audio-fopen.rst +1 -1
@@ -15,7 +15,7 @@ DVB audio open() Synopsis -------- -.. c:function:: int open(const char *deviceName, int flags) +.. cpp:function:: int open(const char *deviceName, int flags) Arguments
Documentation/linux_tv/media/dvb/audio-fwrite.rst +1 -1
@@ -15,7 +15,7 @@ DVB audio write() Synopsis -------- -.. c:function:: size_t write(int fd, const void *buf, size_t count) +.. cpp:function:: size_t write(int fd, const void *buf, size_t count) Arguments
Documentation/linux_tv/media/dvb/audio-get-capabilities.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_GET_CAPABILITIES Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_GET_CAPABILITIES, unsigned int *cap) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_GET_CAPABILITIES, unsigned int *cap) Arguments
Documentation/linux_tv/media/dvb/audio-get-pts.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_GET_PTS Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_GET_PTS, __u64 *pts) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_GET_PTS, __u64 *pts) Arguments
Documentation/linux_tv/media/dvb/audio-get-status.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_GET_STATUS Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_GET_STATUS, struct audio_status *status) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_GET_STATUS, struct audio_status *status) Arguments
Documentation/linux_tv/media/dvb/audio-pause.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_PAUSE Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_PAUSE) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_PAUSE) Arguments
Documentation/linux_tv/media/dvb/audio-play.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_PLAY Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_PLAY) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_PLAY) Arguments
Documentation/linux_tv/media/dvb/audio-select-source.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SELECT_SOURCE Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_SELECT_SOURCE, audio_stream_source_t source) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_SELECT_SOURCE, audio_stream_source_t source) Arguments
Documentation/linux_tv/media/dvb/audio-set-attributes.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SET_ATTRIBUTES Synopsis -------- -.. c:function:: int ioctl(fd, int request = AUDIO_SET_ATTRIBUTES, audio_attributes_t attr ) +.. cpp:function:: int ioctl(fd, int request = AUDIO_SET_ATTRIBUTES, audio_attributes_t attr ) Arguments
Documentation/linux_tv/media/dvb/audio-set-av-sync.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SET_AV_SYNC Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_SET_AV_SYNC, boolean state) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_SET_AV_SYNC, boolean state) Arguments
Documentation/linux_tv/media/dvb/audio-set-bypass-mode.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SET_BYPASS_MODE Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_SET_BYPASS_MODE, boolean mode) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_SET_BYPASS_MODE, boolean mode) Arguments
Documentation/linux_tv/media/dvb/audio-set-ext-id.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SET_EXT_ID Synopsis -------- -.. c:function:: int ioctl(fd, int request = AUDIO_SET_EXT_ID, int id) +.. cpp:function:: int ioctl(fd, int request = AUDIO_SET_EXT_ID, int id) Arguments
Documentation/linux_tv/media/dvb/audio-set-id.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SET_ID Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_SET_ID, int id) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_SET_ID, int id) Arguments
Documentation/linux_tv/media/dvb/audio-set-karaoke.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SET_KARAOKE Synopsis -------- -.. c:function:: int ioctl(fd, int request = AUDIO_SET_KARAOKE, audio_karaoke_t *karaoke) +.. cpp:function:: int ioctl(fd, int request = AUDIO_SET_KARAOKE, audio_karaoke_t *karaoke) Arguments
Documentation/linux_tv/media/dvb/audio-set-mixer.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SET_MIXER Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_SET_MIXER, audio_mixer_t *mix) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_SET_MIXER, audio_mixer_t *mix) Arguments
Documentation/linux_tv/media/dvb/audio-set-mute.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SET_MUTE Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_SET_MUTE, boolean state) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_SET_MUTE, boolean state) Arguments
Documentation/linux_tv/media/dvb/audio-set-streamtype.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_SET_STREAMTYPE Synopsis -------- -.. c:function:: int ioctl(fd, int request = AUDIO_SET_STREAMTYPE, int type) +.. cpp:function:: int ioctl(fd, int request = AUDIO_SET_STREAMTYPE, int type) Arguments
Documentation/linux_tv/media/dvb/audio-stop.rst +1 -1
@@ -15,7 +15,7 @@ AUDIO_STOP Synopsis -------- -.. c:function:: int ioctl(int fd, int request = AUDIO_STOP) +.. cpp:function:: int ioctl(int fd, int request = AUDIO_STOP) Arguments
Documentation/linux_tv/media/dvb/dmx-add-pid.rst +1 -1
@@ -15,7 +15,7 @@ DMX_ADD_PID Synopsis -------- -.. c:function:: int ioctl(fd, int request = DMX_ADD_PID, __u16 *) +.. cpp:function:: int ioctl(fd, int request = DMX_ADD_PID, __u16 *) Arguments
Documentation/linux_tv/media/dvb/dmx-fclose.rst +1 -1
@@ -15,7 +15,7 @@ DVB demux close() Synopsis -------- -.. c:function:: int close(int fd) +.. cpp:function:: int close(int fd) Arguments
Documentation/linux_tv/media/dvb/dmx-fopen.rst +1 -1
@@ -15,7 +15,7 @@ DVB demux open() Synopsis -------- -.. c:function:: int open(const char *deviceName, int flags) +.. cpp:function:: int open(const char *deviceName, int flags) Arguments
Documentation/linux_tv/media/dvb/dmx-fread.rst +1 -1
@@ -15,7 +15,7 @@ DVB demux read() Synopsis -------- -.. c:function:: size_t read(int fd, void *buf, size_t count) +.. cpp:function:: size_t read(int fd, void *buf, size_t count) Arguments
Documentation/linux_tv/media/dvb/dmx-fwrite.rst +1 -1
@@ -15,7 +15,7 @@ DVB demux write() Synopsis -------- -.. c:function:: ssize_t write(int fd, const void *buf, size_t count) +.. cpp:function:: ssize_t write(int fd, const void *buf, size_t count) Arguments
Documentation/linux_tv/media/dvb/dmx-get-caps.rst +1 -1
@@ -15,7 +15,7 @@ DMX_GET_CAPS Synopsis -------- -.. c:function:: int ioctl(fd, int request = DMX_GET_CAPS, dmx_caps_t *) +.. cpp:function:: int ioctl(fd, int request = DMX_GET_CAPS, dmx_caps_t *) Arguments
Documentation/linux_tv/media/dvb/dmx-get-event.rst +1 -1
@@ -15,7 +15,7 @@ DMX_GET_EVENT Synopsis -------- -.. c:function:: int ioctl( int fd, int request = DMX_GET_EVENT, struct dmx_event *ev) +.. cpp:function:: int ioctl( int fd, int request = DMX_GET_EVENT, struct dmx_event *ev) Arguments
Documentation/linux_tv/media/dvb/dmx-get-pes-pids.rst +1 -1
@@ -15,7 +15,7 @@ DMX_GET_PES_PIDS Synopsis -------- -.. c:function:: int ioctl(fd, int request = DMX_GET_PES_PIDS, __u16[5]) +.. cpp:function:: int ioctl(fd, int request = DMX_GET_PES_PIDS, __u16[5]) Arguments
Documentation/linux_tv/media/dvb/dmx-get-stc.rst +1 -1
@@ -15,7 +15,7 @@ DMX_GET_STC Synopsis -------- -.. c:function:: int ioctl( int fd, int request = DMX_GET_STC, struct dmx_stc *stc) +.. cpp:function:: int ioctl( int fd, int request = DMX_GET_STC, struct dmx_stc *stc) Arguments
Documentation/linux_tv/media/dvb/dmx-remove-pid.rst +1 -1
@@ -15,7 +15,7 @@ DMX_REMOVE_PID Synopsis -------- -.. c:function:: int ioctl(fd, int request = DMX_REMOVE_PID, __u16 *) +.. cpp:function:: int ioctl(fd, int request = DMX_REMOVE_PID, __u16 *) Arguments
Documentation/linux_tv/media/dvb/dmx-set-buffer-size.rst +1 -1
@@ -15,7 +15,7 @@ DMX_SET_BUFFER_SIZE Synopsis -------- -.. c:function:: int ioctl( int fd, int request = DMX_SET_BUFFER_SIZE, unsigned long size) +.. cpp:function:: int ioctl( int fd, int request = DMX_SET_BUFFER_SIZE, unsigned long size) Arguments
Documentation/linux_tv/media/dvb/dmx-set-filter.rst +1 -1
@@ -15,7 +15,7 @@ DMX_SET_FILTER Synopsis -------- -.. c:function:: int ioctl( int fd, int request = DMX_SET_FILTER, struct dmx_sct_filter_params *params) +.. cpp:function:: int ioctl( int fd, int request = DMX_SET_FILTER, struct dmx_sct_filter_params *params) Arguments
Documentation/linux_tv/media/dvb/dmx-set-pes-filter.rst +1 -1
@@ -15,7 +15,7 @@ DMX_SET_PES_FILTER Synopsis -------- -.. c:function:: int ioctl( int fd, int request = DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params) +.. cpp:function:: int ioctl( int fd, int request = DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params) Arguments
Documentation/linux_tv/media/dvb/dmx-set-source.rst +1 -1
@@ -15,7 +15,7 @@ DMX_SET_SOURCE Synopsis -------- -.. c:function:: int ioctl(fd, int request = DMX_SET_SOURCE, dmx_source_t *) +.. cpp:function:: int ioctl(fd, int request = DMX_SET_SOURCE, dmx_source_t *) Arguments
Documentation/linux_tv/media/dvb/dmx-start.rst +1 -1
@@ -15,7 +15,7 @@ DMX_START Synopsis -------- -.. c:function:: int ioctl( int fd, int request = DMX_START) +.. cpp:function:: int ioctl( int fd, int request = DMX_START) Arguments
Documentation/linux_tv/media/dvb/dmx-stop.rst +1 -1
@@ -15,7 +15,7 @@ DMX_STOP Synopsis -------- -.. c:function:: int ioctl( int fd, int request = DMX_STOP) +.. cpp:function:: int ioctl( int fd, int request = DMX_STOP) Arguments
Documentation/linux_tv/media/dvb/fe-diseqc-send-burst.rst +1 -1
@@ -15,7 +15,7 @@ FE_DISEQC_SEND_BURST - Sends a 22KHz tone burst for 2x1 mini DiSEqC satellite se Synopsis ======== -.. c:function:: int ioctl( int fd, int request, enum fe_sec_mini_cmd *tone ) +.. cpp:function:: int ioctl( int fd, int request, enum fe_sec_mini_cmd *tone ) Arguments
Documentation/linux_tv/media/dvb/fe-diseqc-send-master-cmd.rst +11 -9
@@ -37,17 +37,11 @@ Description Sends a DiSEqC command to the antenna subsystem. - -Return Value -============ - -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. - - .. _dvb-diseqc-master-cmd: +struct dvb_diseqc_master_cmd +============================ + .. flat-table:: struct dvb_diseqc_master_cmd :header-rows: 0 :stub-columns: 0
@@ -69,3 +63,11 @@ appropriately. The generic error codes are described at the - msg_len - Length of the DiSEqC message. Valid values are 3 to 6 + +Return Value +============ + +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. +
Documentation/linux_tv/media/dvb/fe-dishnetwork-send-legacy-cmd.rst +1 -1
@@ -15,7 +15,7 @@ FE_DISHNETWORK_SEND_LEGACY_CMD Synopsis ======== -.. c:function:: int ioctl(int fd, int request = FE_DISHNETWORK_SEND_LEGACY_CMD, unsigned long cmd) +.. cpp:function:: int ioctl(int fd, int request = FE_DISHNETWORK_SEND_LEGACY_CMD, unsigned long cmd) Arguments
Documentation/linux_tv/media/dvb/fe-get-event.rst +1 -1
@@ -15,7 +15,7 @@ FE_GET_EVENT Synopsis ======== -.. c:function:: int ioctl(int fd, int request = QPSK_GET_EVENT, struct dvb_frontend_event *ev) +.. cpp:function:: int ioctl(int fd, int request = QPSK_GET_EVENT, struct dvb_frontend_event *ev) Arguments
Documentation/linux_tv/media/dvb/fe-get-frontend.rst +1 -1
@@ -15,7 +15,7 @@ FE_GET_FRONTEND Synopsis ======== -.. c:function:: int ioctl(int fd, int request = FE_GET_FRONTEND, struct dvb_frontend_parameters *p) +.. cpp:function:: int ioctl(int fd, int request = FE_GET_FRONTEND, struct dvb_frontend_parameters *p) Arguments
Documentation/linux_tv/media/dvb/fe-read-ber.rst +1 -1
@@ -14,7 +14,7 @@ FE_READ_BER Synopsis ======== -.. c:function:: int ioctl(int fd, int request = FE_READ_BER, uint32_t *ber) +.. cpp:function:: int ioctl(int fd, int request = FE_READ_BER, uint32_t *ber) Arguments
Documentation/linux_tv/media/dvb/fe-read-signal-strength.rst +1 -1
@@ -15,7 +15,7 @@ FE_READ_SIGNAL_STRENGTH Synopsis ======== -.. c:function:: int ioctl( int fd, int request = FE_READ_SIGNAL_STRENGTH, uint16_t *strength) +.. cpp:function:: int ioctl( int fd, int request = FE_READ_SIGNAL_STRENGTH, uint16_t *strength) Arguments
Documentation/linux_tv/media/dvb/fe-read-snr.rst +1 -1
@@ -15,7 +15,7 @@ FE_READ_SNR Synopsis ======== -.. c:function:: int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr) +.. cpp:function:: int ioctl(int fd, int request = FE_READ_SNR, int16_t *snr) Arguments
Documentation/linux_tv/media/dvb/fe-read-uncorrected-blocks.rst +1 -1
@@ -15,7 +15,7 @@ FE_READ_UNCORRECTED_BLOCKS Synopsis ======== -.. c:function:: int ioctl( int fd, int request =FE_READ_UNCORRECTED_BLOCKS, uint32_t *ublocks) +.. cpp:function:: int ioctl( int fd, int request =FE_READ_UNCORRECTED_BLOCKS, uint32_t *ublocks) Arguments
Documentation/linux_tv/media/dvb/fe-set-frontend.rst +1 -1
@@ -15,7 +15,7 @@ FE_SET_FRONTEND Synopsis ======== -.. c:function:: int ioctl(int fd, int request = FE_SET_FRONTEND, struct dvb_frontend_parameters *p) +.. cpp:function:: int ioctl(int fd, int request = FE_SET_FRONTEND, struct dvb_frontend_parameters *p) Arguments
Documentation/linux_tv/media/dvb/fe-set-tone.rst +1 -1
@@ -15,7 +15,7 @@ FE_SET_TONE - Sets/resets the generation of the continuous 22kHz tone. Synopsis ======== -.. c:function:: int ioctl( int fd, int request, enum fe_sec_tone_mode *tone ) +.. cpp:function:: int ioctl( int fd, int request, enum fe_sec_tone_mode *tone ) Arguments
Documentation/linux_tv/media/dvb/fe-set-voltage.rst +1 -1
@@ -15,7 +15,7 @@ FE_SET_VOLTAGE - Allow setting the DC level sent to the antenna subsystem. Synopsis ======== -.. c:function:: int ioctl( int fd, int request, enum fe_sec_voltage *voltage ) +.. cpp:function:: int ioctl( int fd, int request, enum fe_sec_voltage *voltage ) Arguments
Documentation/linux_tv/media/dvb/video-clear-buffer.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_CLEAR_BUFFER Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_CLEAR_BUFFER) +.. cpp:function:: int ioctl(fd, int request = VIDEO_CLEAR_BUFFER) Arguments
Documentation/linux_tv/media/dvb/video-command.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_COMMAND Synopsis -------- -.. c:function:: int ioctl(int fd, int request = VIDEO_COMMAND, struct video_command *cmd) +.. cpp:function:: int ioctl(int fd, int request = VIDEO_COMMAND, struct video_command *cmd) Arguments
Documentation/linux_tv/media/dvb/video-continue.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_CONTINUE Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_CONTINUE) +.. cpp:function:: int ioctl(fd, int request = VIDEO_CONTINUE) Arguments
Documentation/linux_tv/media/dvb/video-fast-forward.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_FAST_FORWARD Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_FAST_FORWARD, int nFrames) +.. cpp:function:: int ioctl(fd, int request = VIDEO_FAST_FORWARD, int nFrames) Arguments
Documentation/linux_tv/media/dvb/video-fclose.rst +1 -1
@@ -15,7 +15,7 @@ dvb video close() Synopsis -------- -.. c:function:: int close(int fd) +.. cpp:function:: int close(int fd) Arguments
Documentation/linux_tv/media/dvb/video-fopen.rst +1 -1
@@ -15,7 +15,7 @@ dvb video open() Synopsis -------- -.. c:function:: int open(const char *deviceName, int flags) +.. cpp:function:: int open(const char *deviceName, int flags) Arguments
Documentation/linux_tv/media/dvb/video-freeze.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_FREEZE Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_FREEZE) +.. cpp:function:: int ioctl(fd, int request = VIDEO_FREEZE) Arguments
Documentation/linux_tv/media/dvb/video-fwrite.rst +1 -1
@@ -15,7 +15,7 @@ dvb video write() Synopsis -------- -.. c:function:: size_t write(int fd, const void *buf, size_t count) +.. cpp:function:: size_t write(int fd, const void *buf, size_t count) Arguments
Documentation/linux_tv/media/dvb/video-get-capabilities.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_GET_CAPABILITIES Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_GET_CAPABILITIES, unsigned int *cap) +.. cpp:function:: int ioctl(fd, int request = VIDEO_GET_CAPABILITIES, unsigned int *cap) Arguments
Documentation/linux_tv/media/dvb/video-get-event.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_GET_EVENT Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_GET_EVENT, struct video_event *ev) +.. cpp:function:: int ioctl(fd, int request = VIDEO_GET_EVENT, struct video_event *ev) Arguments
Documentation/linux_tv/media/dvb/video-get-frame-count.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_GET_FRAME_COUNT Synopsis -------- -.. c:function:: int ioctl(int fd, int request = VIDEO_GET_FRAME_COUNT, __u64 *pts) +.. cpp:function:: int ioctl(int fd, int request = VIDEO_GET_FRAME_COUNT, __u64 *pts) Arguments
Documentation/linux_tv/media/dvb/video-get-frame-rate.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_GET_FRAME_RATE Synopsis -------- -.. c:function:: int ioctl(int fd, int request = VIDEO_GET_FRAME_RATE, unsigned int *rate) +.. cpp:function:: int ioctl(int fd, int request = VIDEO_GET_FRAME_RATE, unsigned int *rate) Arguments
Documentation/linux_tv/media/dvb/video-get-navi.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_GET_NAVI Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_GET_NAVI , video_navi_pack_t *navipack) +.. cpp:function:: int ioctl(fd, int request = VIDEO_GET_NAVI , video_navi_pack_t *navipack) Arguments
Documentation/linux_tv/media/dvb/video-get-pts.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_GET_PTS Synopsis -------- -.. c:function:: int ioctl(int fd, int request = VIDEO_GET_PTS, __u64 *pts) +.. cpp:function:: int ioctl(int fd, int request = VIDEO_GET_PTS, __u64 *pts) Arguments
Documentation/linux_tv/media/dvb/video-get-size.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_GET_SIZE Synopsis -------- -.. c:function:: int ioctl(int fd, int request = VIDEO_GET_SIZE, video_size_t *size) +.. cpp:function:: int ioctl(int fd, int request = VIDEO_GET_SIZE, video_size_t *size) Arguments
Documentation/linux_tv/media/dvb/video-get-status.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_GET_STATUS Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_GET_STATUS, struct video_status *status) +.. cpp:function:: int ioctl(fd, int request = VIDEO_GET_STATUS, struct video_status *status) Arguments
Documentation/linux_tv/media/dvb/video-play.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_PLAY Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_PLAY) +.. cpp:function:: int ioctl(fd, int request = VIDEO_PLAY) Arguments
Documentation/linux_tv/media/dvb/video-select-source.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SELECT_SOURCE Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SELECT_SOURCE, video_stream_source_t source) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SELECT_SOURCE, video_stream_source_t source) Arguments
Documentation/linux_tv/media/dvb/video-set-attributes.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_ATTRIBUTES Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SET_ATTRIBUTE ,video_attributes_t vattr) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SET_ATTRIBUTE ,video_attributes_t vattr) Arguments
Documentation/linux_tv/media/dvb/video-set-blank.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_BLANK Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SET_BLANK, boolean mode) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SET_BLANK, boolean mode) Arguments
Documentation/linux_tv/media/dvb/video-set-display-format.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_DISPLAY_FORMAT Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SET_DISPLAY_FORMAT, video_display_format_t format) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SET_DISPLAY_FORMAT, video_display_format_t format) Arguments
Documentation/linux_tv/media/dvb/video-set-format.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_FORMAT Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SET_FORMAT, video_format_t format) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SET_FORMAT, video_format_t format) Arguments
Documentation/linux_tv/media/dvb/video-set-highlight.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_HIGHLIGHT Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SET_HIGHLIGHT ,video_highlight_t *vhilite) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SET_HIGHLIGHT ,video_highlight_t *vhilite) Arguments
Documentation/linux_tv/media/dvb/video-set-id.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_ID Synopsis -------- -.. c:function:: int ioctl(int fd, int request = VIDEO_SET_ID, int id) +.. cpp:function:: int ioctl(int fd, int request = VIDEO_SET_ID, int id) Arguments
Documentation/linux_tv/media/dvb/video-set-spu-palette.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_SPU_PALETTE Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SET_SPU_PALETTE, video_spu_palette_t *palette ) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SET_SPU_PALETTE, video_spu_palette_t *palette ) Arguments
Documentation/linux_tv/media/dvb/video-set-spu.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_SPU Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SET_SPU , video_spu_t *spu) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SET_SPU , video_spu_t *spu) Arguments
Documentation/linux_tv/media/dvb/video-set-streamtype.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_STREAMTYPE Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SET_STREAMTYPE, int type) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SET_STREAMTYPE, int type) Arguments
Documentation/linux_tv/media/dvb/video-set-system.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SET_SYSTEM Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SET_SYSTEM , video_system_t system) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SET_SYSTEM , video_system_t system) Arguments
Documentation/linux_tv/media/dvb/video-slowmotion.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_SLOWMOTION Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_SLOWMOTION, int nFrames) +.. cpp:function:: int ioctl(fd, int request = VIDEO_SLOWMOTION, int nFrames) Arguments
Documentation/linux_tv/media/dvb/video-stillpicture.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_STILLPICTURE Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_STILLPICTURE, struct video_still_picture *sp) +.. cpp:function:: int ioctl(fd, int request = VIDEO_STILLPICTURE, struct video_still_picture *sp) Arguments
Documentation/linux_tv/media/dvb/video-stop.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_STOP Synopsis -------- -.. c:function:: int ioctl(fd, int request = VIDEO_STOP, boolean mode) +.. cpp:function:: int ioctl(fd, int request = VIDEO_STOP, boolean mode) Arguments
Documentation/linux_tv/media/dvb/video-try-command.rst +1 -1
@@ -15,7 +15,7 @@ VIDEO_TRY_COMMAND Synopsis -------- -.. c:function:: int ioctl(int fd, int request = VIDEO_TRY_COMMAND, struct video_command *cmd) +.. cpp:function:: int ioctl(int fd, int request = VIDEO_TRY_COMMAND, struct video_command *cmd) Arguments
Documentation/linux_tv/media/v4l/vidioc-g-priority.rst +2 -2
@@ -15,9 +15,9 @@ VIDIOC_G_PRIORITY - VIDIOC_S_PRIORITY - Query or request the access priority ass Synopsis ======== -.. c:function:: int ioctl( int fd, int request, enum v4l2_priority *argp ) +.. cpp:function:: int ioctl( int fd, int request, enum v4l2_priority *argp ) -.. c:function:: int ioctl( int fd, int request, const enum v4l2_priority *argp ) +.. cpp:function:: int ioctl( int fd, int request, const enum v4l2_priority *argp ) Arguments
Signature · 1 line
2.7.4
PATCH 31/54 doc-rst: parse-headers: improve delimiters to detect symbols
In reply to Mauro Carvalho ChehabAs we had to escape the symbols for the ReST markup to not do the wrong thing, the logic to discover start/end of strings are not trivial. Improve the end delimiter detection, in order to highlight more occurrences of the strings.
--- Documentation/sphinx/parse-headers.pl | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-)
Documentation/sphinx/parse-headers.pl +14 -13
@@ -200,78 +200,79 @@ $data =~ s,([\_\`\*\<\>\&\\\\:\/]),\\$1,g; # Add references # -my $separators = "[\n \t\,\)\=\:\{\}\;]"; +my $start_delim = "[ \n\t\(\=\*\@]"; +my $end_delim = "(\\s|,|\\\\=|\\\\:|\\;|\\\)|\\}|\\{)"; foreach my $r (keys %ioctls) { my $n = $ioctls{$r}; - my $s = ":ref:`$r <$n>`"; + my $s = "\\ :ref:`$r <$n>`\\ "; $r =~ s,([\_\`\*\<\>\&\\\\:\/]),\\\\$1,g; print "$r -> $s\n" if ($debug); - $data =~ s/([\s])($r)($separators)/$1$s$3/g; + $data =~ s/($start_delim)($r)$end_delim/$1$s$3/g; } foreach my $r (keys %defines) { my $n = $defines{$r}; - my $s = ":ref:`$r <$n>`"; + my $s = "\\ :ref:`$r <$n>`\\ "; $r =~ s,([\_\`\*\<\>\&\\\\:\/]),\\\\$1,g; print "$r -> $s\n" if ($debug); - $data =~ s/([\s])($r)($separators)/$1$s$3/g; + $data =~ s/($start_delim)($r)$end_delim/$1$s$3/g; } foreach my $r (keys %enum_symbols) { my $n = $enum_symbols{$r}; - my $s = ":ref:`$r <$n>`"; + my $s = "\\ :ref:`$r <$n>`\\ "; $r =~ s,([\_\`\*\<\>\&\\\\:\/]),\\\\$1,g; print "$r -> $s\n" if ($debug); - $data =~ s/([\s])($r)($separators)/$1$s$3/g; + $data =~ s/($start_delim)($r)$end_delim/$1$s$3/g; } foreach my $r (keys %enums) { my $n = $enums{$r}; - my $s = ":ref:`enum $r <$n>`"; + my $s = "\\ :ref:`enum $r <$n>`\\ "; $r =~ s,([\_\`\*\<\>\&\\\\:\/]),\\\\$1,g; print "$r -> $s\n" if ($debug); - $data =~ s/enum\s+($r)($separators)/$s$2/g; + $data =~ s/enum\s+($r)$end_delim/$s$2/g; } foreach my $r (keys %structs) { my $n = $structs{$r}; - my $s = ":ref:`struct $r <$n>`"; + my $s = "\\ :ref:`struct $r <$n>`\\ "; $r =~ s,([\_\`\*\<\>\&\\\\:\/]),\\\\$1,g; print "$r -> $s\n" if ($debug); - $data =~ s/struct\s+($r)($separators)/$s$2/g; + $data =~ s/struct\s+($r)$end_delim/$s$2/g; } foreach my $r (keys %typedefs) { my $n = $typedefs{$r}; - my $s = ":ref:`$r <$n>`"; + my $s = "\\ :ref:`$r <$n>`\\ "; $r =~ s,([\_\`\*\<\>\&\\\\:\/]),\\\\$1,g; print "$r -> $s\n" if ($debug); - $data =~ s/([\s\(\,\=])($r)($separators)/$1$s$3/g; + $data =~ s/($start_delim)($r)$end_delim/$1$s$3/g; } #
Signature · 1 line
2.7.4
Quoted 36 lines · Mauro Carvalho Chehab
That's the second series of patches related to DocBook to ReST conversion. With this patch series, we're ready to merge it upstream.
There are still one thing to do: there are some new updates at the DocBook pages on two topic branches (cec and vsp1). Those changes should also be converted, in order to be able to remove the DocBook pages.
Visually, I'm more happy with the new pages, as the produced layout is more fancy, IMHO, using a modern visual.
Also, editing ReST pages is a way simpler than editing the DocBooks. Also, reviewing documentation patches should be simpler, with is a good thing.
On the bad side, Sphinx doesn't support auto-numberating examples, figures or tables. We'll need some extension for that. For now, the only impact is on the examples, that were manually numerated. So, patches adding new examples will need to check and manually renumerate other examples.
I hope we'll have soon some Sphinx extension to support auto-numbering.
I'll soon change linux.org documentation page to show the Sphinx-generated documenation. I intend to keep the old one for a while, for people to be able to compare both. I'll post an email once I do this at both linux-media and linux-doc mailing lists.
I did a review on all pages, but, as I'm not a Vulcan, I'm pretty sure I missed some things. So, feel free to review the final document and send me patches with any needed fixes or improvements.
Quoted 8 lines
Finally, you'll see some warnings produced by generating the documentation.
There are actually two types of warnings there:
1) At least here where I sit, I'm getting those warnings:
Documentation/linux_tv/media/dvb/fe-diseqc-send-burst.rst:18: WARNING: Error when parsing function declaration:
Can we please put this in Documentation/media instead of linux_tv? That's a really bad name, and not logical at all since the drivers are all in drivers/media.
Someone looking for the drivers/media documentation won't be able to find it. I know I had to look in the actual patches to discover that it ended up in linux_tv!
Regards,
Hans