This chapter describes the functions that various kernel components use to populate the procfs with files, symlinks, device nodes, and directories.
A minor note before we start: if you want to use any of the procfs functions, be sure to include the correct header file! This should be one of the first lines in your code:
#include <linux/proc_fs.h>