Project

General

Profile

Actions

Feature #2110

open

Try to use annotation given by attributes to found errors

Added by Evgeny Novikov over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
12/16/2011
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

Here one can see a list of defines represented different attributes to become some kind of annotations. For instance, see the example below (complete example is here):

static void ehci_urb_done(struct oxu_hcd *oxu, struct urb *urb)
__releases(oxu->lock)
__acquires(oxu->lock)
{
        ...
        spin_unlock(&oxu->lock);
        usb_hcd_giveback_urb(oxu_to_hcd(oxu), urb, urb->status);
        spin_lock(&oxu->lock);
}

We can check whether a function really releases oxu->lock and then acquires oxu->lock or not.


Related issues 1 (1 open0 closed)

Related to Linux Kernel Safety RuleDB - Feature #4564: Automatic extraction of Linux kernel API usage rules on the basis of BUG*/WARN* macrosNew10/26/2013

Actions

No data to display

Actions

Also available in: Atom PDF