blob: 8c40bc74e369c5282e2a19f3fee92e70b3f2c28a [file] [log] [blame]
.. -*- coding: utf-8; mode: rst -*-
.. _KEY_FREE:
==============
KEY_FREE
==============
Name
----
KEY_FREE
Synopsis
--------
.. code-block:: c
int ioctl(int fd, KEY_FREE, int key_index)
Arguments
---------
``fd``
File descriptor returned by open /dev/key.
``key_index``
key_index that come from the key_alloc.
Description
-----------
this ioctl will free the key index
Return Value
------------
On success 0 is returned, on error -1 and the ``errno`` variable is set
appropriately. The generic error codes are described at the
:ref:`Generic Error Codes <gen-errors>` chapter.