Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Linux Foundation

Plan to Throw One Away - Pitfalls of API Design for Low-level Libraries and Kernel Interfaces

Linux Foundation via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Reviews

Start your review of Plan to Throw One Away - Pitfalls of API Design for Low-level Libraries and Kernel Interfaces

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.