aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/litmus_proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus/litmus_proc.h')
-rw-r--r--include/litmus/litmus_proc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/litmus/litmus_proc.h b/include/litmus/litmus_proc.h
index fbc0082b2d21..6800e725d48c 100644
--- a/include/litmus/litmus_proc.h
+++ b/include/litmus/litmus_proc.h
@@ -17,3 +17,9 @@ long make_plugin_proc_dir(struct sched_plugin* plugin,
17 */ 17 */
18void remove_plugin_proc_dir(struct sched_plugin* plugin); 18void remove_plugin_proc_dir(struct sched_plugin* plugin);
19 19
20
21/* Copy at most size-1 bytes from ubuf into kbuf, null-terminate buf, and
22 * remove a '\n' if present. Returns the number of bytes that were read or
23 * -EFAULT. */
24int copy_and_chomp(char *kbuf, unsigned long ksize,
25 __user const char* ubuf, unsigned long ulength);