---
title: "File system handling of kernel"
subject: "Embedded System"
chapter: 6
key: "semester_6/embedded_system:kernel-file-system-handling"
source: https://www.bctengineer.com/q/semester_6/embedded_system/kernel-file-system-handling
site: BCT Engineering
---

# File system handling of kernel

Embedded System · Chapter 6: RTOS

- Asked in: 2076 Baisakh, 3 marks
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_6/embedded_system/kernel-file-system-handling
- Whole chapter: https://www.bctengineer.com/md/semester_6/embedded_system/chapter-6

## Question

Explain file system handling of kernel.

## Short answer

The kernel’s file system provides file and directory operations, space allocation, access control, device mapping via buffering, and reliability features like journaling or wear-leveling for flash storage.

## Answer

The kernel's **file-system management** provides a uniform way to store, name, organise, retrieve and protect data on storage devices (flash, SD card, disk), hiding device details from the application.

Functions:
- **File operations:** system calls to create, open, read, write, seek, close and delete files.
- **Directory management:** organises files in a hierarchical directory tree, with names and paths.
- **Space allocation:** tracks free and used blocks (e.g. FAT table, inodes) and allocates storage to files.
- **Access control:** permissions and protection for each file, and file locking to avoid conflicts between tasks.
- **Mapping to devices:** the file-system layer translates file requests into block reads and writes via the device driver, using buffering and caching for speed.
- **Reliability:** consistency checks and journaling, plus wear-levelling for flash.

Embedded kernels often use a small FAT or flash file system; a simple RTOS may have none and use raw flash instead.

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. What is the main role of the kernel's file-system management?
   A. Schedule CPU tasks
   B. Allocate interrupt vectors
   C. Compile applications
   D. Provide a uniform way to store, name, retrieve and protect data, hiding device details
   Answer: D. It abstracts storage devices such as flash and SD cards. (Key point: Purpose)

2. How does the file system track free and used storage?
   A. Using the task control block
   B. Using the ready queue
   C. Using structures such as FAT table or inodes
   D. Using timers
   Answer: C. Allocation tables record which blocks belong to which file. (Key point: Space allocation)

3. Which feature helps reliability of flash file systems?
   A. Spin locks
   B. Journaling and wear-levelling
   C. Round robin scheduling
   D. Priority inheritance
   Answer: B. Wear-levelling spreads writes and journaling keeps consistency after failures. (Key point: Flash reliability)

## Related in Embedded System

- [User-level versus kernel-level threads](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Auser-vs-kernel-threads) — Embedded System, chapter 6, asked 2×
- [Basic functions of real-time kernel](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Areal-time-kernel-functions) — Embedded System, chapter 6, asked 2×
- [Kernel and its types](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Akernel-types) — Embedded System, chapter 6, asked 2×
- [Importance of kernel OS in embedded](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Aimportance-of-kernel-os) — Embedded System, chapter 6

## Related in other subjects

- [Extended machine, kernel, system call](https://www.bctengineer.com/question.md?key=semester_6%2Foperating_system%3Aextended-machine-kernel-syscall) — Operating System, chapter 1
- [Material handling system and its usefulness](https://www.bctengineer.com/question.md?key=semester_8%2Fconstruction_management%3Amaterial-handling-system) — Construction Management, chapter 6, asked 4×
- [Google File System architecture](https://www.bctengineer.com/question.md?key=semester_8%2Fbig_data_technologies%3Agfs-architecture) — Big Data Technologies, chapter 2, asked 2×
- [File system layout, i-node, backup](https://www.bctengineer.com/question.md?key=semester_6%2Foperating_system%3Afs-layout-inode-backup) — Operating System, chapter 5
