PrajnaEdge
A curiosphere for curious minds who want to understand, experiment with, and experience technology.
To continue exploring
Technology, made tangible.

Where does intelligence run?

Explore AI that moves inference closer to the data — from the edge to the device itself.

AI inference runs at or near the point where data is generated, rather than relying on a remote cloud.
Edge AI Computer Vision

Image Classification

Can this image classifier maintain its intelligence while becoming small enough for the edge?

// Coming soon
Edge AI Playground

Image Classification

Can this image classifier maintain its intelligence while becoming small enough for the edge?

Choose an image

Upload an image
Supports JPG, JPEG, PNG
This classifier recognizes only Apple, Banana, and Orange. Other objects may be incorrectly classified as one of these classes.

Choose the model

Model size
4.91 MiB
Largest activation
~625 KiB
Test accuracy
99.11%
Measured model accuracy
Your image is processed locally in your browser.
On-Device AI
On-Device AI Playground
// Coming soon

Explore the ideas, systems and connections that shape technology — choose any node to begin your journey.

PrajnaEdge Navigation Tree
Embedded Systems Tree

Edge AI Demonstrations

Deploying neural networks and intelligent decision loops on raw silicon targets.

Sort:
Operating Systems

The File Isn't Open

Understanding the system-call boundary and file descriptors.

Operating SystemsFile ManagementSystem CallsFile Descriptors

1. The Familiar Assumption

When writing code to interact with persistent storage, we often start with a simple command:

open("notes.txt");

To a programmer starting out, it is easy to assume a direct, unmediated relationship: the application requests a file, grabs it, and reads or writes its bytes directly from the disk.

Naive Mental Model (The Illusion) Application notes.txt Physical Disk

But this mental model is an illusion.

An application cannot directly access physical storage devices. The CPU runs program code in a restricted, unprivileged mode (User Mode). In this execution space, program instructions cannot issue raw commands to storage interfaces. If an application could touch storage sectors directly, a single bug or malicious loop in one program could overwrite the partition table, corrupting the entire system.

To interact with a file, the application must cross a strict architectural boundary.

2. Crossing the Boundary

To access a file, the program must request the operating system kernel to perform the operation on its behalf. It does this by using a set of dedicated functions called System Calls.

These calls represent the secure interface through which applications query the kernel:

* open(): Requests access to a file by name. * read(): Requests bytes from a previously opened file resource. * write(): Requests bytes into a previously opened file resource. * close(): Releases the resource.

Crossing the User-Kernel Boundary User Space (Unprivileged Mode) Application: open("notes.txt") User-Kernel Boundary Kernel Space (Privileged Mode) Syscall Entry: sys_open() Filesystem Driver (ext4 / NTFS) Physical Storage Driver & Disk

It is important to make a conceptual distinction: these system calls are not File Management itself. They are simply the API—the doors in the wall. File Management is the massive, complex infrastructure running inside the kernel that handles access verification, data buffering, filesystem block mapping, and storage scheduling behind those doors.

3. The File Descriptor: A Digital Ticket

When an application invokes open("notes.txt"), the kernel does not send the physical file data to the application. Instead, if the request is valid, the kernel returns a simple integer:

int fd = open("notes.txt", O_RDONLY); // Returns: fd = 3

This integer is a File Descriptor (often abbreviated as fd).

The application does not receive a pointer to raw storage or the filesystem structures. It receives a reference index. When the application needs to read data, it passes this index back to the kernel:

read(fd, buffer, 100); // Read 100 bytes using descriptor reference "fd" write(fd, data, 50); // Write 50 bytes using descriptor reference "fd" close(fd); // Release the reference

Conceptually, we must separate three distinct ideas:

* The File: The persistent resource resting on storage (defined by its metadata/inode and data blocks). * The Open File (Description): The temporary tracking state allocated by the kernel when a file is opened (storing the current read/write cursor offset, access flags, and links to the file metadata). * The File Descriptor: The process-specific integer index that references the kernel's open-file table.

The application holds only the descriptor index. The operating system retains complete control over the file state.

4. EdgeCase: The Open File Lifecycle

Watch the interactive sequence below to see how execution transitions across the system-call boundary, how descriptors are mapped in the process table, and how the kernel tracks file offsets:

5. Multiple Processes and Shared Files

Because descriptors are private indexes mapped inside a process's file descriptor table, different processes have separate descriptor namespaces.

If Process A and Process B both open "notes.txt" independently, they do not automatically share the same open file state:

Independent Open States for a Shared File Process A Space File Descriptor: fd = 3 Process B Space File Descriptor: fd = 3 Open File Entry A Cursor Offset: 0 Open File Entry B Cursor Offset: 0 notes.txt Inode Shared Metadata & Sectors

Each process receives its own descriptor (which might happen to be the same integer, e.g. 3) mapping to a separate Open File entry in the kernel's global table. Each entry maintains its own read/write cursor offset. If Process A reads 10 bytes, its offset advances to 10, while Process B's offset remains at 0.

However, in certain scenarios (such as when a process forks or passes descriptor references through IPC), different processes can share the exact same kernel-managed open file state. In that case, an offset advance by one process directly affects where the other process will read or write next.

File descriptors belong to individual processes, but open-file states and files are distinct kernel-wide resources.

6. Diverse Handles, Uniform Concept

The exact names and mechanisms for this reference system differ across operating systems, but the underlying architectural pattern is identical:

* Unix / Linux / POSIX: Relies on integer-based File Descriptors. Standard streams are pre-allocated: 0 (stdin), 1 (stdout), and 2 (stderr). * Windows: Applications invoke APIs like CreateFile() and receive a HANDLE (a pointer-sized opaque reference) rather than a small integer.

In both paradigms, the application receives a reference token. The process never interacts with the storage driver directly; it requests operations using the token, and the operating system handles the translation.

7. The Name-to-Identity Mapping

We now understand that an application does not directly hold the physical file. It uses a file descriptor or reference index to ask the operating system to perform operations on the file. The kernel maintains the open file state and delegates block lookup to the filesystem.

But this relies on the file already being identified by name.

When the application requests:

/usr/local/bin/prog

How does the filesystem find the file that this name refers to?

System Tree Node Operating Systems

PrajnaEdge

Engineering concepts you don't just read — you experience.
Founded in 2026.

PrajnaEdge is a technology company exploring the space between understanding technology, experimenting with ideas, and turning them into things that can be experienced.

Our Mission

To make technology easier to explore, deeper to understand, and more exciting to experience.

Our Vision

To build a technology ecosystem where curiosity, experimentation and creation continuously lead to one another.

Where it began

Embedded Systems

PrajnaEdge began with Embedded Systems — exploring the foundations that connect hardware, software and intelligent computation.

The first technology universe is built around that foundation. The journey will expand as new ideas, experiments and products emerge.

PrajnaEdge is a technology company created by Devaharsha Meesarapu.

CREATOR PROFILE

Devaharsha Meesarapu

Embedded Systems • Firmware • Edge AI

I am the engineer behind the design, development, and content of PrajnaEdge. I build low-level systems where code directly controls hardware, bridging the gap between register-level silicon behavior and intelligent edge decision loops.

View Resume →

ABOUT ME

I am an Embedded Firmware Engineer focused on developing software for resource-constrained systems. My experience spans bare-metal firmware, device drivers, microcontroller peripherals, and communication protocols, working across the boundary between hardware and software.

My work has involved microcontroller-based systems, real-time behaviour, hardware interfaces, and communication technologies such as CAN, CAN FD, UART, SPI, and I²C. I am particularly interested in understanding systems from the lowest level upward—from registers and peripherals to intelligent edge systems.

ENGINEERING PHILOSOPHY

Engineering is not just about writing code; it is about managing constraints, timings, and physical hardware characteristics. True mastery of complex systems comes from understanding the interactions across different layers of the stack.

This conviction is why I built PrajnaEdge—to bridge the gap between conceptual theory and direct, register-level physical reality.

CONNECT

LinkedIn → GitHub →

Interactive Career Journey

Let's Connect
Interested in embedded systems, AI, or building something meaningful? I'd love to hear from you.
Open to collaborations, research, and interesting engineering conversations.
Help Improve PrajnaEdge
Found something to improve? I'd love to hear your thoughts.

Bare Metal

Software that runs directly on hardware without an operating system.

Applications
Operating Systems
YOU ARE HERE
Bare Metal
Processor
Hardware

"Every embedded application begins long before main()."

Operating Systems

An Operating System manages hardware and software resources so complex applications can work efficiently.

Applications
YOU ARE HERE
Operating Systems
Bare Metal
Processor
Hardware

"When one loop is no longer enough to carry the burden."

Support PrajnaEdge

PrajnaEdge is an independent education platform built to make knowledge freely accessible.

If you find PrajnaEdge useful, you can support its continued development.

Your support helps fund the time, tools, infrastructure, and experimentation that go into building and maintaining PrajnaEdge.

Select Region
Select Amount
Select an amount to support PrajnaEdge.