What is a Linux Kernel Module – a Big Picture
Learning Linux Kernel Programming is always fascinating and yet challenging. So generally you may tend to learn Kernel Module programming, since such a module can be dynamically plugged into running…
a Linux and Tech Youtube Channel for advance Linux users, systems and network software programmers and tech enthusiasts
Learning Linux Kernel Programming is always fascinating and yet challenging. So generally you may tend to learn Kernel Module programming, since such a module can be dynamically plugged into running…
Whenever you do Linux Kernel programming, you must've noticed file operations are defined with respect to certain data-structures. Its quite common you may find these in Linux Device Drivers and…
If you are a newbie or even an experienced programmer you might have stumbled at kernel newbies page which is heaven for all those who are willing to involve in…
Often aspiring students may have this question, that what is the purpose of Linux Kernel Development. Since Linux Kernel is very mature and it has almost everything one would need.…
When you start newly working in the Linux Kernel space you will go through various books and other study material. You read about Kernel data-structures, APIs and so on. But…
Refer:Wiki – Virtual file system ↗ Linux Kernel:fs/namei.c – vfs_mknod(), vfs_mkdir(), vfs_rename() ↗ Here is the source-code from the Kernel-source version 6.5.9 for quick reference:
Refer:Wiki – Virtual file system ↗Linux Kernel Storage Stack Diagram ↗Image – Linux Virtual File System ↗
Refer:Wiki File system ↗ Linux Kernel Source:/fs/inode.c ↗struct inode ↗ Linux Kernel – filesystem type specific inode handlers:/fs/ext4/inode.c ↗/fs/btrfs/inode.c ↗/fs/ext2/inode.c ↗ Here is the struct inode (/include/linux/fs.h) from the Kernel-source…
Refer:Wiki File system ↗ Linux Kernel Source:/fs/filesystems.c ↗register_filesystem(), unregister_filesystem() APIs ↗struct file_system_type data-structure ↗ Linux Kernel – ext4 filesystem type:static struct file_system_type ext2_fs_type ↗static struct file_system_type ext3_fs_type ↗static struct file_system_type…
Refer:Linux Kernel Source:struct task_struct data-structure ↗struct mm_struct data-structure ↗Task state bitmask flags – tsk->state ↗ Here is the struct mm_struct data-structure data-structure (/include/linux/mm_types.h) from the Kernel-source version 4.14 for quick…