X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fkernel%2Fsamples%2F03.proc%2F.git;a=blobdiff_plain;f=hello_procfs.c;fp=hello_procfs.c;h=956f74d6bd10636696494405f6e2bbfc71f29bd0;hp=a3ce21d1402578343d37d1d8d0b01fdf6199a42f;hb=9dd4d28d7be0a2651a700db9cecafecb2edcbd5b;hpb=379d9cea1badbd386fc326cb0a1003b675717a7f diff --git a/hello_procfs.c b/hello_procfs.c index a3ce21d..956f74d 100644 --- a/hello_procfs.c +++ b/hello_procfs.c @@ -53,7 +53,7 @@ static int hello_procfs_init(void) /* create the proc entry and set its fops: there is a potential race * here */ struct proc_dir_entry *entry; - entry = create_proc_entry("gnu", 0666, NULL); + entry = create_proc_entry("hellop", 0666, NULL); entry->proc_fops = &hello_procfs_fops; return 0; } @@ -61,7 +61,7 @@ static int hello_procfs_init(void) static void hello_procfs_exit(void) { /* remove our proc entry */ - remove_proc_entry("gnu", NULL); + remove_proc_entry("hellop", NULL); } module_init(hello_procfs_init);