I refer an article KD-Project_2: kernel module sk_buff send packet and make a test.
How can we open a new console to do another thing at the same time?
Ans: use “subprocess“
def openNewConsole(): '''open new file in Host consol''' log = open("myLogFile.log", "w") '''Create a subprocess to do "adb logcat" and let stdout send to "log"''' ret = subprocess.Popen("adb logcat -v threadtime -b all", creationflags =subprocess.CREATE_NEW_CONSOLE, stdout=log) return ret
I surf the internet and see a good article, and I back up a part of the article.
How does network device driver works
This article will introduce an well-known tool for detecting the memory leak,