Skip to content

Commit f40c2a2

Browse files
mchehabJonathan Corbet
authored andcommitted
docs: driver-api: ioctl.rst: replace some characters
The conversion tools used during DocBook/LaTeX/html/Markdown->ReST conversion and some cut-and-pasted text contain some characters that aren't easily reachable on standard keyboards and/or could cause troubles when parsed by the documentation build system. Replace the occurences of the following characters: - U+00a0 (' '): NO-BREAK SPACE as it can cause lines being truncated on PDF output Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/b2186e313f990488ded56d9b8d35a2d1fe479aa1.1623826294.git.mchehab+huawei@kernel.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 90f40f5 commit f40c2a2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Documentation/driver-api/ioctl.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ ioctl commands that follow modern conventions: ``_IO``, ``_IOR``,
2525
with the correct parameters:
2626

2727
_IO/_IOR/_IOW/_IOWR
28-
The macro name specifies how the argument will be used.  It may be a
28+
The macro name specifies how the argument will be used. It may be a
2929
pointer to data to be passed into the kernel (_IOW), out of the kernel
30-
(_IOR), or both (_IOWR).  _IO can indicate either commands with no
30+
(_IOR), or both (_IOWR). _IO can indicate either commands with no
3131
argument or those passing an integer value instead of a pointer.
3232
It is recommended to only use _IO for commands without arguments,
3333
and use pointers for passing data.
@@ -200,10 +200,10 @@ cause an information leak, which can be used to defeat kernel address
200200
space layout randomization (KASLR), helping in an attack.
201201

202202
For this reason (and for compat support) it is best to avoid any
203-
implicit padding in data structures.  Where there is implicit padding
203+
implicit padding in data structures. Where there is implicit padding
204204
in an existing structure, kernel drivers must be careful to fully
205205
initialize an instance of the structure before copying it to user
206-
space.  This is usually done by calling memset() before assigning to
206+
space. This is usually done by calling memset() before assigning to
207207
individual members.
208208

209209
Subsystem abstractions

0 commit comments

Comments
 (0)