MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
developers
Recherche

[$] Warning about WARN_ON()

jeudi 18 avril 2024, 16:24 , par LWN.net
Kernel developers, like conscientious developers for many projects, will
often include checks in the code for conditions that are never expected to
occur, but which would indicate a serious problem should that expectation
turn out to be incorrect. For years, developers have been encouraged (to
put it politely) to avoid using assertions that crash the machine for such
conditions unless there is truly no alternative. Increasingly, though, use
of the kernel's WARN_ON() family of macros, which developers were
told to use instead, is also being discouraged.
https://lwn.net/Articles/969923/

Voir aussi

News copyright owned by their original publishers | Copyright © 2004 - 2024 Zicos / 440Network
Date Actuelle
sam. 4 mai - 23:18 CEST