What's New in the Linux Kernel... from Python
summary
Shows concrete, working examples: using Python's fcntl wrapper to call the kernel's fcreated_query (Linux 6.12) and get 1 or 0 for whether open with O_CREAT actually created the file, and using struct + ctypes to call the new binary proc maps API (proc_mmap_query, Linux 6.11), allocating a buffer, iterating VMAs, and decoding filenames. Notes needing a tiny C program to compute the ioctl constant and an alternate CFFI path; full code lives at github.com/jfft/pyon2025 and the second example runs (bugfixed on GitHub).
AI-written summary · about
chapters (5)
- 0:00Introduction
- 0:25File creation query
- 1:43Advanced memory querying
- 28:30Further exploration
- 30:12Q&A and concluding remarks
related talks
42mPopping Kernels An Exploration of Kernel Development for Jupyter Notebooks
25mFinding penguins with a snake Linux features for a Python user
28mKnocking On A Process’s Door: Introspecting Live Python Processes
33mPython-BPF: Writing eBPF programs in pure Python
37mKeynote 1: What's New in Python
31mUnderstanding Python from the inside: C concepts to dive into CPython fearless
22mLow Level Python a Deep dive into the python sources
34mLearning to Write Filesystems in Userspace with FUSE and Python
