mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
bak
This commit is contained in:
@@ -136,6 +136,8 @@ However, when you do:
|
|||||||
|
|
||||||
it gets overwritten by a fresh filesystem and you lose all changes.
|
it gets overwritten by a fresh filesystem and you lose all changes.
|
||||||
|
|
||||||
|
Using text mode is another workaround if you don't need GUI features.
|
||||||
|
|
||||||
## Text mode
|
## Text mode
|
||||||
|
|
||||||
Show serial output of QEMU directly on the current terminal, without opening a QEMU window:
|
Show serial output of QEMU directly on the current terminal, without opening a QEMU window:
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ static const struct file_operations fops = {
|
|||||||
|
|
||||||
static int myinit(void)
|
static int myinit(void)
|
||||||
{
|
{
|
||||||
i = kmalloc(sizeof(loff_t), GFP_KERNEL);
|
i = kmalloc(sizeof(i), GFP_KERNEL);
|
||||||
*i = 0x12345678;
|
*i = 0x12345678;
|
||||||
debugfs_file = debugfs_create_file(
|
debugfs_file = debugfs_create_file(
|
||||||
"lkmc_virt_to_phys", S_IRUSR, NULL, NULL, &fops);
|
"lkmc_virt_to_phys", S_IRUSR, NULL, NULL, &fops);
|
||||||
|
|||||||
Reference in New Issue
Block a user