cregit-Linux how code gets into the kernel

Release 4.7 kernel/printk/braille.c

Directory: kernel/printk

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/kernel.h>
#include <linux/console.h>
#include <linux/string.h>

#include "console_cmdline.h"
#include "braille.h"


char *_braille_console_setup(char **str, char **brl_options) { if (!memcmp(*str, "brl,", 4)) { *brl_options = ""; *str += 4; } else if (!memcmp(str, "brl=", 4)) { *brl_options = *str + 4; *str = strchr(*brl_options, ','); if (!*str) pr_err("need port name after brl=\n"); else *((*str)++) = 0; } else return NULL; return *str; }

Contributors

PersonTokensPropCommitsCommitProp
joe perchesjoe perches10296.23%150.00%
steven rostedtsteven rostedt43.77%150.00%
Total106100.00%2100.00%


int _braille_register_console(struct console *console, struct console_cmdline *c) { int rtn = 0; if (c->brl_options) { console->flags |= CON_BRL; rtn = braille_register_console(console, c->index, c->options, c->brl_options); } return rtn; }

Contributors

PersonTokensPropCommitsCommitProp
joe perchesjoe perches56100.00%1100.00%
Total56100.00%1100.00%


int _braille_unregister_console(struct console *console) { if (console->flags & CON_BRL) return braille_unregister_console(console); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
joe perchesjoe perches27100.00%1100.00%
Total27100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
joe perchesjoe perches20798.10%150.00%
steven rostedtsteven rostedt41.90%150.00%
Total211100.00%2100.00%
Directory: kernel/printk
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}