MCPcopy Create free account
hub / github.com/Bananymous/banan-os / should_disable_serial

Function should_disable_serial

kernel/kernel/kernel.cpp:48–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46};
47
48static bool should_disable_serial(BAN::StringView full_command_line)
49{
50 const char* start = full_command_line.data();
51 const char* current = start;
52 while (true)
53 {
54 if (!*current || *current == ' ' || *current == '\t')
55 {
56 if (current - start == 8 && memcmp(start, "noserial", 8) == 0)
57 return true;
58 if (!*current)
59 break;
60 start = current + 1;
61 }
62 current++;
63 }
64
65 return false;
66}
67
68extern bool g_disable_debug;
69static ParsedCommandLine cmdline;

Callers 1

kernel_mainFunction · 0.85

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected