]> git.feebdaed.xyz Git - linuxyz.git/commitdiff
okay
authorseantywork <seantywork@gmail.com>
Wed, 19 Nov 2025 08:12:03 +0000 (08:12 +0000)
committerseantywork <seantywork@gmail.com>
Wed, 19 Nov 2025 08:12:03 +0000 (08:12 +0000)
kproc/kproc.h
kproc/user/user.c

index d11d5594b01490327fad4fc4494614180f3333d9..2ab210470bd2531894cd066967f8a56a78eb5540 100644 (file)
@@ -3,5 +3,6 @@
 
 #define DEVICE_NAME "kproc_f"
 #define KPROC_BUFF_LEN 128
+#define DEVICE_NODNAME "./kproc_f_nod"
 
 #endif
\ No newline at end of file
index 02fe7b287c3cc9197282f6f174bcc8a0bbb5b800..e8486b72c6d1a510c89e9b752342f2378bd1ef10 100644 (file)
@@ -58,7 +58,7 @@ int main(int argc, char** argv){
     }
     result = -1;
     signal(SIGINT, sig_hdl);
-    fp = fopen(DEVICE_NAME, "r+");
+    fp = fopen(DEVICE_NODNAME, "r+");
     if(fp == NULL){
         printf("failed to open\n");
         return -1;