Skip to content
  •  1 place Charles de Gaulle, 78180 Montigny-le-Bretonneux
  •  +33 6 35 09 69 81
  •  contact@labcsmart.com
LABCSMART LABCSMART
LABCSMART

Nothing but embedded systems

  • Home
  • Engineering
  • Trainings
  • Open Source
  • Company
    • Careers
    • About Us
    • Contact
  • Blog
  • Contact

Category: Linux Device Drivers

Writing Linux device drivers: regulator, PWM and other kernel frameworks, with tested examples and the patterns we use on client projects.

Linux Bit Operations: __ffs, __fls and Alignment
All Linux Device Drivers Linux Kernel

Linux Bit Operations: __ffs, __fls and Alignment

November 27, 2026November 27, 2026 LABCSMARTLABCSMART

__ffs and __fls in the Linux kernel: alignment, bitmap walks, ilog2 and page orders,…

Leave a Comment on Linux Bit Operations: __ffs, __fls and AlignmentPost read time 14 min read
Linux Bitfield Macros: GENMASK, FIELD_PREP and field_prep
All Linux Device Drivers Linux Kernel

Linux Bitfield Macros: GENMASK, FIELD_PREP and field_prep

November 27, 2026 LABCSMARTLABCSMART

GENMASK, FIELD_PREP, FIELD_GET, FIELD_MODIFY and the runtime field_prep() on the registers of the Linux…

Leave a Comment on Linux Bitfield Macros: GENMASK, FIELD_PREP and field_prepPost read time 10 min read
Linux Regulator Drivers: PMIC, Constraints and Consumers
All Linux Device Drivers Linux Kernel

Linux Regulator Drivers: PMIC, Constraints and Consumers

February 20, 2022November 19, 2026 LABCSMARTLABCSMART

A tested Linux regulator driver for a simulated PMIC: every output type, device tree…

Leave a Comment on Linux Regulator Drivers: PMIC, Constraints and ConsumersPost read time 37 min read
Linux PWM Drivers: Waveform API, Consumers and User Space
All Linux Device Drivers Linux Kernel

Linux PWM Drivers: Waveform API, Consumers and User Space

February 20, 2022November 19, 2026 LABCSMARTLABCSMART

A tested Linux PWM driver for a simulated controller: waveform callbacks, duty offset, capture,…

Leave a Comment on Linux PWM Drivers: Waveform API, Consumers and User SpacePost read time 31 min read

Our Training Courses

  • Embedded Linux system development
  • Yocto Project and OpenEmbedded
  • Arm boot chain and secure boot
  • x86 boot chain and secure boot
  • Linux kernel and device drivers
  • Real-time Linux, PREEMPT_RT
  • Fail-safe OTA updates, RAUC
  • Secure boot and hardening
  • Cyber Resilience Act
  • Zephyr RTOS development
  • Zephyr connectivity
  • STM32 bare-metal

See the training catalog

Recent Posts

  • Linux Bit Operations: __ffs, __fls and Alignment
  • Linux Bitfield Macros: GENMASK, FIELD_PREP and field_prep
  • Preparing an Embedded Linux Product for the CRA with Yocto

Useful Links

  • LABCSMART on LinkedIn
  • Our work in the mainline kernel
  • Our books on Linux device drivers
  • Follow new articles (RSS)
  • Site en français
LABCSMART

Embedded Linux and Linux kernel engineering, training and upstream development.

Company

  • About us
  • Our books
  • Our products
  • Careers

Expertise

  • Engineering services
  • Training courses
  • Open source
  • Blog

Contact

1 place Charles de Gaulle
78180 Montigny-le-Bretonneux, France
+33 6 35 09 69 81
contact@labcsmart.com

Monday to Friday, 9:00 to 18:00

Contact us
© 2019–2026 LABCSMARTLegal noticePrivacy policy