Skip to content

Commit 3618218

Browse files
rddunlaptorvalds
authored andcommitted
Docbook: add fs/eventfd.c and fix typos in it
Add fs/eventfd.c to filesystems docbook. Make typo corrections in fs/eventfd.c. Signed-off-by: Randy Dunlap <[email protected]> Cc: Davide Libenzi <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent c756d08 commit 3618218

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Documentation/DocBook/filesystems.tmpl

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
</sect1>
8383
</chapter>
8484

85+
<chapter id="fs_events">
86+
<title>Events based on file descriptors</title>
87+
!Efs/eventfd.c
88+
</chapter>
89+
8590
<chapter id="sysfs">
8691
<title>The Filesystem for Exporting Kernel Objects</title>
8792
!Efs/sysfs/file.c

fs/eventfd.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ EXPORT_SYMBOL_GPL(eventfd_ctx_get);
9999
* @ctx: [in] Pointer to eventfd context.
100100
*
101101
* The eventfd context reference must have been previously acquired either
102-
* with eventfd_ctx_get() or eventfd_ctx_fdget()).
102+
* with eventfd_ctx_get() or eventfd_ctx_fdget().
103103
*/
104104
void eventfd_ctx_put(struct eventfd_ctx *ctx)
105105
{
@@ -146,9 +146,9 @@ static void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt)
146146
* eventfd_ctx_remove_wait_queue - Read the current counter and removes wait queue.
147147
* @ctx: [in] Pointer to eventfd context.
148148
* @wait: [in] Wait queue to be removed.
149-
* @cnt: [out] Pointer to the 64bit conter value.
149+
* @cnt: [out] Pointer to the 64-bit counter value.
150150
*
151-
* Returns zero if successful, or the following error codes:
151+
* Returns %0 if successful, or the following error codes:
152152
*
153153
* -EAGAIN : The operation would have blocked.
154154
*
@@ -175,11 +175,11 @@ EXPORT_SYMBOL_GPL(eventfd_ctx_remove_wait_queue);
175175
* eventfd_ctx_read - Reads the eventfd counter or wait if it is zero.
176176
* @ctx: [in] Pointer to eventfd context.
177177
* @no_wait: [in] Different from zero if the operation should not block.
178-
* @cnt: [out] Pointer to the 64bit conter value.
178+
* @cnt: [out] Pointer to the 64-bit counter value.
179179
*
180-
* Returns zero if successful, or the following error codes:
180+
* Returns %0 if successful, or the following error codes:
181181
*
182-
* -EAGAIN : The operation would have blocked but @no_wait was nonzero.
182+
* -EAGAIN : The operation would have blocked but @no_wait was non-zero.
183183
* -ERESTARTSYS : A signal interrupted the wait operation.
184184
*
185185
* If @no_wait is zero, the function might sleep until the eventfd internal

0 commit comments

Comments
 (0)