#include <linux/fs.h>
#include <linux/hash.h>
#include <linux/random.h>
#include <linux/miscdevice.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/wait.h>
#include <linux/module.h>
#include "ecryptfs_kernel.h"
Go to the source code of this file.
#define PKT_TYPE_OFFSET 0 |
void ecryptfs_destroy_ecryptfs_miscdev |
( |
void |
| ) |
|
ecryptfs_destroy_ecryptfs_miscdev
All of the daemons must be exorcised prior to calling this function.
Definition at line 517 of file miscdev.c.
ecryptfs_init_ecryptfs_miscdev
Messages sent to the userspace daemon from the kernel are placed on a queue associated with the daemon. The next read against the miscdev handle by that daemon will return the oldest message placed on the message queue for the daemon.
Returns zero on success; non-zero otherwise
Definition at line 498 of file miscdev.c.
ecryptfs_send_miscdev : Data to send to daemon; may be NULL : Amount of data to send to daemon : Message context, which is used to handle the reply. If this is NULL, then we do not expect a reply. : Type of message : Flags for message : eCryptfs daemon object
Add msg_ctx to queue and then, if it exists, notify the blocked miscdevess about the data being available. Must be called with ecryptfs_daemon_hash_mux held.
Returns zero on success; non-zero otherwise
Definition at line 170 of file miscdev.c.