diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/keys.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/keys.txt b/Documentation/keys.txt index 7030200..3bbe157 100644 --- a/Documentation/keys.txt +++ b/Documentation/keys.txt @@ -964,6 +964,16 @@ The structure has a number of fields, some of which are mandatory: It is not safe to sleep in this method; the caller may hold spinlocks. + (*) void (*revoke)(struct key *key); + + This method is optional. It is called to discard part of the payload + data upon a key being revoked. The caller will have the key semaphore + write-locked. + + It is safe to sleep in this method, though care should be taken to avoid + a deadlock against the key semaphore. + + (*) void (*destroy)(struct key *key); This method is optional. It is called to discard the payload data on a key |