Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6416

Does proc_create function automatically creates folder with name parameter?

$
0
0

Function declaration:

static inline struct proc_dir_entry *proc_create(const char *name, umode_t mode,struct proc_dir_entry *parent, const struct file_operations *proc_fops)

struct file_operations proc_fops = { read: read_proc write: write_proc };

Call: proc_create("my_dev",0660,NULL,&my_ops);

What's the meaning of parameter "my_dev", does this mean that a file will be created in /proc with my_dev name?


Viewing all articles
Browse latest Browse all 6416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>