mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
eCryptfs: integrate eCryptfs device handle into the module.
Update the versioning information. Make the message types generic. Add an outgoing message queue to the daemon struct. Make the functions to parse and write the packet lengths available to the rest of the module. Add functions to create and destroy the daemon structs. Clean up some of the comments and make the code a little more consistent with itself. [akpm@linux-foundation.org: printk fixes] Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8bf2debd5f
commit
f66e883eb6
6 changed files with 435 additions and 226 deletions
|
@ -196,7 +196,7 @@ int ecryptfs_send_miscdev(char *data, size_t data_size,
|
|||
if (!msg_ctx->msg) {
|
||||
rc = -ENOMEM;
|
||||
printk(KERN_ERR "%s: Out of memory whilst attempting "
|
||||
"to kmalloc(%d, GFP_KERNEL)\n", __func__,
|
||||
"to kmalloc(%Zd, GFP_KERNEL)\n", __func__,
|
||||
(sizeof(*msg_ctx->msg) + data_size));
|
||||
goto out_unlock;
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ out_unlock:
|
|||
*
|
||||
* Returns the number of bytes copied into the user buffer
|
||||
*/
|
||||
static int
|
||||
static ssize_t
|
||||
ecryptfs_miscdev_read(struct file *file, char __user *buf, size_t count,
|
||||
loff_t *ppos)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue