Rust in the Linux

Ramfs in Rust

Introduction

  • pointers on where to start your own Rust kernel module
  • more details about the Linux file system implementation than you need to know
  • a newfound appreciation of the years of work that happened in the topic of the Linux
rust in linux, ramfs
Source of the image: Kernel 5.14 ganha candidato de lançamento — Notícias — Diolinux Plus

Rust for Linux | History

Rust for Linux | Practice

Rust for Linux | Beginnings

Filesystems in Linux | We’ve finally made it

  • dcache —the kernel caches the directory structure in RAM to speed up access
  • inode — contains metadata about the file (file mode, UID,GID, size, file times, …, but not file name)
  • dentry —directory entry containing file name and refers to particular inode. Multiple dentries can refer to the same inode, which usually results in the same file being available in two locations, perphaps under different names

Filesystems in Linux | Declaring and registering the file system module

RamFS “in” Rust | Here be dragons

Implementing a file system doing stuff (super important)

Creating a file (just kidding… not yet)

So we made it — we have reached the point of creating a file

--

--

This is a Technical Blog of Altimetrik Poland team. We focus on subjects like: Java, Data, Mobile, Blockchain and Recruitment. Waiting for your feedback!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Altimetrik Poland Tech Blog

This is a Technical Blog of Altimetrik Poland team. We focus on subjects like: Java, Data, Mobile, Blockchain and Recruitment. Waiting for your feedback!