Plan to Throw One Away - Pitfalls of API Design for Low-level Libraries and Kernel Interfaces
Offered By: Linux Foundation via YouTube
Course Description
Overview
Explore the challenges and best practices in API design for low-level user-space libraries and kernel interfaces in this 30-minute Linux Foundation conference talk. Delve into the concept of "Plan to Throw One Away" as presented by Bartosz Golaszewski from BayLibre. Learn about GPIO character devices and libgpiod, different types of compatibility, and the importance of adding reserved space to exposed structures. Discover why making data structures opaque in library headers is crucial and how to ensure your exposed structures work across 32 and 64-bit architectures. Uncover surprising details that can break the ABI and understand why maintaining the same user-space data model as the kernel is not advisable. Gain valuable insights to improve your API design skills for low-level systems programming.
Syllabus
Intro
GPIO character device & libgpiod
Types of compatibility
Add reserved space to your exposed structures
Make all data structures exposed in library headers opaque
Lesson #3 Make sure your exposed structures work on 32 and 64-bit architectures
Some surprising details can break the ABI
Don't try to keep the user-space data model same as the one in the kernel
Taught by
Linux Foundation
Tags
Related Courses
Java Multithreading, Concurrency & Performance OptimizationUdemy Learn Assembly Language by Making Games for the Atari 2600
Udemy 16-Bit Virtual Machine in JavaScript
YouTube Build a 65C02-Based Computer From Scratch
YouTube Complete Modern C++ Programming - Beginner to Advanced
Udemy