MCPcopy Index your code
hub / github.com/cirosantilli/linux-kernel-module-cheat / __init__

Method __init__

common.py:1052–1066  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1050 * `--nproc` to set he number of build threads
1051 '''
1052 def __init__(self, *args, **kwargs):
1053 super().__init__(*args, **kwargs)
1054 self.add_argument(
1055 '--clean',
1056 default=False,
1057 help='Clean the build instead of building.',
1058 ),
1059 self.add_argument(
1060 '-j',
1061 '--nproc',
1062 default=multiprocessing.cpu_count(),
1063 type=int,
1064 help='Number of processors to use for the build.',
1065 )
1066 self.test_results = []
1067
1068 def clean(self):
1069 build_dir = self.get_build_dir()

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
add_argumentMethod · 0.45

Tested by

no test coverage detected