History

kernel: acct.c: fix some kernel-doc nits

Fix kernel-doc notation to use the documented Returns: syntax and place the function description for acct_process() on the first line where it should be.

Randy Dunlap committed 6 years ago

Commit b7621eb1 parent 7b7b8a21 file · +3 −5Browse files

Unified · Split

kernel/acct.c+3−5
@@ -263,12 +263,12 @@ static DEFINE_MUTEX(acct_on_mutex); · 262 unmodified lines
263263 * sys_acct - enable/disable process accounting
264264 * @name: file name for accounting records or NULL to shutdown accounting
265265 *
266− * Returns 0 for success or negative errno values for failure.
267− *
268266 * sys_acct() is the only system call needed to implement process
269267 * accounting. It takes the name of the file where accounting records
270268 * should be written. If the filename is NULL, accounting will be
271269 * shutdown.
270+ *
271+ * Returns: 0 for success or negative errno values for failure.
272272 */
273273 SYSCALL_DEFINE1(acct, const char __user *, name)
274274 {
@@ -586,9 +586,7 @@ static void slow_acct_process(struct pid_namespace *ns) · 311 unmodified lines
586586 }
587587
588588 /**
589− * acct_process
590− *
591− * handles process accounting for an exiting task
589+ * acct_process - handles process accounting for an exiting task
592590 */
593591 void acct_process(void)
594592 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t