diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2005-09-10 03:26:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 13:06:26 -0400 |
commit | 417ef531415c070926b071b75fd1c1ac4b6e2f7e (patch) | |
tree | e2bceb50c0d7a5e43e8a5596f237cf5b68f57d9f /kernel/acct.c | |
parent | 621a4d1a823e1ec631fbfbe6e53ad036e2d2abc6 (diff) |
[PATCH] kernel/acct: add kerneldoc
for kernel/acct.c:
- fix typos
- add kerneldoc for non-static functions
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/acct.c')
-rw-r--r-- | kernel/acct.c | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/kernel/acct.c b/kernel/acct.c index f70e6027cca9..b756f527497e 100644 --- a/kernel/acct.c +++ b/kernel/acct.c | |||
@@ -165,7 +165,7 @@ out: | |||
165 | } | 165 | } |
166 | 166 | ||
167 | /* | 167 | /* |
168 | * Close the old accouting file (if currently open) and then replace | 168 | * Close the old accounting file (if currently open) and then replace |
169 | * it with file (if non-NULL). | 169 | * it with file (if non-NULL). |
170 | * | 170 | * |
171 | * NOTE: acct_globals.lock MUST be held on entry and exit. | 171 | * NOTE: acct_globals.lock MUST be held on entry and exit. |
@@ -199,11 +199,16 @@ static void acct_file_reopen(struct file *file) | |||
199 | } | 199 | } |
200 | } | 200 | } |
201 | 201 | ||
202 | /* | 202 | /** |
203 | * sys_acct() is the only system call needed to implement process | 203 | * sys_acct - enable/disable process accounting |
204 | * accounting. It takes the name of the file where accounting records | 204 | * @name: file name for accounting records or NULL to shutdown accounting |
205 | * should be written. If the filename is NULL, accounting will be | 205 | * |
206 | * shutdown. | 206 | * Returns 0 for success or negative errno values for failure. |
207 | * | ||
208 | * sys_acct() is the only system call needed to implement process | ||
209 | * accounting. It takes the name of the file where accounting records | ||
210 | * should be written. If the filename is NULL, accounting will be | ||
211 | * shutdown. | ||
207 | */ | 212 | */ |
208 | asmlinkage long sys_acct(const char __user *name) | 213 | asmlinkage long sys_acct(const char __user *name) |
209 | { | 214 | { |
@@ -250,9 +255,12 @@ asmlinkage long sys_acct(const char __user *name) | |||
250 | return (0); | 255 | return (0); |
251 | } | 256 | } |
252 | 257 | ||
253 | /* | 258 | /** |
254 | * If the accouting is turned on for a file in the filesystem pointed | 259 | * acct_auto_close - turn off a filesystem's accounting if it is on |
255 | * to by sb, turn accouting off. | 260 | * @sb: super block for the filesystem |
261 | * | ||
262 | * If the accounting is turned on for a file in the filesystem pointed | ||
263 | * to by sb, turn accounting off. | ||
256 | */ | 264 | */ |
257 | void acct_auto_close(struct super_block *sb) | 265 | void acct_auto_close(struct super_block *sb) |
258 | { | 266 | { |
@@ -503,8 +511,11 @@ static void do_acct_process(long exitcode, struct file *file) | |||
503 | set_fs(fs); | 511 | set_fs(fs); |
504 | } | 512 | } |
505 | 513 | ||
506 | /* | 514 | /** |
507 | * acct_process - now just a wrapper around do_acct_process | 515 | * acct_process - now just a wrapper around do_acct_process |
516 | * @exitcode: task exit code | ||
517 | * | ||
518 | * handles process accounting for an exiting task | ||
508 | */ | 519 | */ |
509 | void acct_process(long exitcode) | 520 | void acct_process(long exitcode) |
510 | { | 521 | { |
@@ -530,9 +541,9 @@ void acct_process(long exitcode) | |||
530 | } | 541 | } |
531 | 542 | ||
532 | 543 | ||
533 | /* | 544 | /** |
534 | * acct_update_integrals | 545 | * acct_update_integrals - update mm integral fields in task_struct |
535 | * - update mm integral fields in task_struct | 546 | * @tsk: task_struct for accounting |
536 | */ | 547 | */ |
537 | void acct_update_integrals(struct task_struct *tsk) | 548 | void acct_update_integrals(struct task_struct *tsk) |
538 | { | 549 | { |
@@ -547,9 +558,9 @@ void acct_update_integrals(struct task_struct *tsk) | |||
547 | } | 558 | } |
548 | } | 559 | } |
549 | 560 | ||
550 | /* | 561 | /** |
551 | * acct_clear_integrals | 562 | * acct_clear_integrals - clear the mm integral fields in task_struct |
552 | * - clear the mm integral fields in task_struct | 563 | * @tsk: task_struct whose accounting fields are cleared |
553 | */ | 564 | */ |
554 | void acct_clear_integrals(struct task_struct *tsk) | 565 | void acct_clear_integrals(struct task_struct *tsk) |
555 | { | 566 | { |