Skip to content

Commit f75009f

Browse files
committed
examples/sleep: clarify /proc vs procfs wording
Use "/proc" when the comment refers to the actual file (/proc/sleep) and keep "proc" when it denotes the procfs mechanism or related helper APIs. This makes the documentation consistent and avoids ambiguity between a file path and the proc filesystem itself. Signed-off-by: Chia-Hao Chiu <[email protected]>
1 parent 3795131 commit f75009f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sleep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static int module_close(struct inode *inode, struct file *file)
155155
* functions.
156156
*/
157157

158-
/* File operations for our proc file. This is where we place pointers to all
158+
/* File operations for our /proc file. This is where we place pointers to all
159159
* the functions called when somebody tries to do something to our file. NULL
160160
* means we don't want to deal with something.
161161
*/
@@ -177,7 +177,7 @@ static const struct file_operations file_ops_4_our_proc_file = {
177177
};
178178
#endif
179179

180-
/* Initialize the module - register the proc file */
180+
/* Initialize the module - register the /proc file */
181181
static int __init sleep_init(void)
182182
{
183183
our_proc_file =

0 commit comments

Comments
 (0)