GPT4D: Automatic Cross-Version Linux Driver Upgrade Toolkit

Yang, Borui and Li, Hongyu and Cai, Dongqi (2024) GPT4D: Automatic Cross-Version Linux Driver Upgrade Toolkit. In: Machine Learning and Intelligent Communication. 8th EAI International Conference, MLICOM 2023, Beijing, China, December 17, 2023, Proceedings.

[thumbnail of 75413.pdf] PDF
75413.pdf

Download (2MB)

Abstract

The Linux operating system, with a history spanning over 22 years since its inception in 1991, has undergone countless version updates. Each update potentially introduces changes to its Application Programming Interfaces (APIs), compelling developers to adjust drivers in accordance with these API modifications. Consequently, developers often dedicate a significant amount of time to the maintenance and refactoring of existing code. As machine learning-based approaches have advanced, a growing number of code-specific models have been developed. However, most previous research on generative code models has predominantly concentrated on generating new code, frequently neglecting the unique requirements of editing existing code. In this paper, we propose a toolkit named GPT4D that harnesses the capabilities of the Large Language Model GPT-4 to automatically upgrade Linux driver code. A key challenge is the token limit of the model, by which most of driver code could be too long to be processed. To address this issue, we have designed a code filter that analyzes the abstract syntax tree (AST), based on code differences, to identify the most relevant code segments. We demonstrate the efficiency of our toolkit by applying it to a real-world Linux driver that requires modification.

Item Type: Conference or Workshop Item (UNSPECIFIED)
Uncontrolled Keywords: Software Engineering, Machine Learning, Programming Language
Date Deposited: 04 Mar 2026 19:20
Last Modified: 20 Nov 2026 13:22
URI: https://eprints.eai.eu/id/eprint/56069

Actions (login required)

View Item
View Item