Enforcing the use of API functions in Linux code

Julia Lawall, Gilles Muller, Nicolas Jean-Michel Palix

7 Citations (Scopus)

Abstract

In the Linux kernel source tree, header files typically define
many small functions that have a simple behavior but are
critical to ensure readability, correctness, and maintainability.
We have observed, however, that some Linux code does not
use these functions systematically. In this paper, we propose
an approach combining rule-based program matching and
transformation with generative programming to generate
rules for finding and fixing code fragments that should use the
functions defined in header files. We illustrate our approach
using an in-depth study based on four typical functions
defined in the header file include/linux/usb.h.
Original languageEnglish
Title of host publicationProceedings of the 8th workshop on Aspects, components, and patterns for infrastructure software
Number of pages6
PublisherAssociation for Computing Machinery
Publication date2009
Pages7-12
ISBN (Print)978-1-60558-450-8
DOIs
Publication statusPublished - 2009
EventWorkshop on Aspects, components, and patterns for infrastructure software (ACP4IS 2009) - Charlottesville, VA, United States
Duration: 2 Mar 20092 Mar 2009
Conference number: 8

Conference

ConferenceWorkshop on Aspects, components, and patterns for infrastructure software (ACP4IS 2009)
Number8
Country/TerritoryUnited States
CityCharlottesville, VA
Period02/03/200902/03/2009

Fingerprint

Dive into the research topics of 'Enforcing the use of API functions in Linux code'. Together they form a unique fingerprint.

Cite this