thank me later

The system call


int mknod(const char *pathnamer, mode_t mode, dev_t dev);

is used to create filesystem nodes. It cannot be used to create symlinks or directories.

The dev parameter is used to assign major and minor id when creating a device. It is ignored otherwise.