Skip to contentSkip to conversation

Second series of ReST convert patches for media

PATCH In review Mauro Carvalho Chehab 2 participants 56 messages Jul 8, 2016 Page 2 of 2

Subsystems (3)
lore
Share & tools
lore
#10 lore raw

PATCH 10/54 doc-rst: linux_tv: use :cpp:function:: on all syscalls

In reply to Mauro Carvalho Chehab

Now 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
index 841c9759d5e0..dbe20ff38e83 100644
@@ -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
index f2dd79903c49..69df4c0f2fb2 100644
@@ -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
index a576c6b160a4..a3dec29bdc69 100644
@@ -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
index b513a39f0935..053627dd61e7 100644
@@ -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
index e515fb353a14..e5d4225cd9d7 100644
@@ -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
index 46a15950439f..ec3b23aa79b3 100644
@@ -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
index f9307053064f..ca95b9be0c2a 100644
@@ -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
index 8b6fdc664f9d..e274a8d53785 100644
@@ -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
index 246c78c003de..5f875508b833 100644
@@ -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
index b0a550af87b3..cbd822773d85 100644
@@ -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
index 86652c3bca06..9ca263e90c6c 100644
@@ -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
index 1af708375821..db4d7203acc5 100644
@@ -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
index 3e873d9cb345..b806d806a46f 100644
@@ -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
index 43ff50279742..18667cea2cdf 100644
@@ -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
index 4ecfb75d28f1..6f7e26fa4cd1 100644
@@ -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
index b21d142ec31c..30bcaca14c3f 100644
@@ -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
index 1b5b8893a00b..049414db8ef6 100644
@@ -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
index fed99eae52cb..a664dc1955cb 100644
@@ -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
index ebb2d41bbec3..b55f8380b9cd 100644
@@ -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
index ce4b2a63917e..67821729c2b6 100644
@@ -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
index a2469267508b..ebaba95ee278 100644
@@ -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
index 4b13c9b9dffe..dfb9a6c00d88 100644
@@ -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
index d9430978096f..449127e3f2aa 100644
@@ -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
index 37f5ee43d523..6343035653ac 100644
@@ -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
index e442881481a2..f54c2a1220c1 100644
@@ -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
index 7e640fa860c3..76dbb42713ad 100644
@@ -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
index 92f7a0632766..d25b19e4f696 100644
@@ -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
index 8d2632205c29..9efd81a1b5c8 100644
@@ -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
index 20e3d6e55d30..d0549eb7fbd3 100644
@@ -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
index 81a7c7fedd47..6a7550c63bb5 100644
@@ -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
index 8b1fbf5d2c81..ba5d30c913c8 100644
@@ -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
index 616c745a0418..bd477bb67082 100644
@@ -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
index ed1a49ce9fc2..c8f038b40074 100644
@@ -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
index 012b9e9792be..8ae48cf39cda 100644
@@ -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
index d079d8b39597..8c929fa9b98c 100644
@@ -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
index 910869ebdefd..addc321011ce 100644
@@ -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
index 7aa4dfe3cdc5..99a8d5c82756 100644
@@ -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
index cc316d00343d..9835d1e78400 100644
@@ -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
index f9157dd6a8fe..7e4bf09fc83e 100644
@@ -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
index c022cc290067..11d441c6f237 100644
@@ -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
index dc83b4f2e586..58a5e6ac10bd 100644
@@ -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
index 4b60a42dd52c..9f71b39de0c2 100644
@@ -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
index 79beb1b9da3b..ffa3d04c6bd4 100644
@@ -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
index fdf0d1440add..5d2df808df18 100644
@@ -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
index 3262441385ff..c2b5b417f5fb 100644
@@ -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
index fcaadcb537fb..0cdee2effc97 100644
@@ -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
index 837af2de9f6f..5394f9ae90f4 100644
@@ -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
index 6b753846a008..5c29c058dfdc 100644
@@ -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
index 4e66da0af6fd..7cb70c38d534 100644
@@ -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
index 12aedb69395d..16bf6b73f8d5 100644
@@ -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
index ec8dbf4e266c..517f79bdbb4b 100644
@@ -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
index dd227ad85546..7c85aa06f013 100644
@@ -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
index 42a98a47e323..b1634f722cbd 100644
@@ -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
index 2a6444a4f4dc..c5acc094986f 100644
@@ -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
index 0b3a27a22d30..db338e9f5379 100644
@@ -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
index b4dd5ea676b9..ebeaade0c351 100644
@@ -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
index 31d4d62b2c7c..9e5471557b83 100644
@@ -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
index 12e04df990b7..d3d0dc31281a 100644
@@ -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
index da03db4be8de..045038f4181e 100644
@@ -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
index 5515dd40a1c1..94cbbba478a8 100644
@@ -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
index d43459915179..a1484a226518 100644
@@ -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
index a55f7a1d52ac..4ff100c2ee95 100644
@@ -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
index a137b6589599..131def962305 100644
@@ -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
index ccb2552722f0..6c3034fe5fa2 100644
@@ -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
index c1ad9576963d..082612243bbb 100644
@@ -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
index 70fb266e3ed8..c75e3c47c471 100644
@@ -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
index 5fd5b37942ec..ab9c2236df7e 100644
@@ -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
index 103d0ad3341a..943c4b755372 100644
@@ -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
index f03c544668f5..0ee0d03dbeb2 100644
@@ -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
index 9de0d9c7c9ca..326c5c876e80 100644
@@ -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
index d8b94c9b56b9..142ea8817380 100644
@@ -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
index c1fb7c75b4a8..2061ab064977 100644
@@ -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
index 257a3c2a4627..53d66ec462ca 100644
@@ -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
index 6ff11af71355..374f5d895b4d 100644
@@ -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
index 61993ab354ca..9c002d5399ad 100644
@@ -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
index ae9e0da5fd0b..4b80b6f56219 100644
@@ -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
index ce2860574f20..a6f6924f10c4 100644
@@ -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
index a2055369f0cd..75b2e7a6e829 100644
@@ -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
index f84906a7d1f4..9ae0df1f5813 100644
@@ -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
index c8cc85af590b..905712844f6a 100644
@@ -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
index 053cdbba4ed4..ed3a2f53b998 100644
@@ -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
index 4e7fbab4b8bc..ad8d59e06004 100644
@@ -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
index be21fb01bd0f..df96c2d7fc6b 100644
@@ -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
index 4419195661f1..9f774ce400a4 100644
@@ -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
#31 lore raw

PATCH 31/54 doc-rst: parse-headers: improve delimiters to detect symbols

In reply to Mauro Carvalho Chehab

As 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
index 287f6459e13a..ec9537ef586f 100755
@@ -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
#55 lore raw
In reply to Mauro Carvalho Chehab
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