messaging.c (dddfa461fc8951f9b5f951c13565b6cac678635a) | messaging.c (dd2a3b7ad98f8482cae481cad89dfed5eee48365) |
---|---|
1/** 2 * eCryptfs: Linux filesystem encryption layer 3 * 4 * Copyright (C) 2004-2006 International Business Machines Corp. 5 * Author(s): Michael A. Halcrow <mhalcrow@us.ibm.com> 6 * Tyler Hicks <tyhicks@ou.edu> 7 * 8 * This program is free software; you can redistribute it and/or --- 8 unchanged lines hidden (view full) --- 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 20 * 02111-1307, USA. 21 */ 22 23#include "ecryptfs_kernel.h" 24 | 1/** 2 * eCryptfs: Linux filesystem encryption layer 3 * 4 * Copyright (C) 2004-2006 International Business Machines Corp. 5 * Author(s): Michael A. Halcrow <mhalcrow@us.ibm.com> 6 * Tyler Hicks <tyhicks@ou.edu> 7 * 8 * This program is free software; you can redistribute it and/or --- 8 unchanged lines hidden (view full) --- 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 20 * 02111-1307, USA. 21 */ 22 23#include "ecryptfs_kernel.h" 24 |
25LIST_HEAD(ecryptfs_msg_ctx_free_list); 26LIST_HEAD(ecryptfs_msg_ctx_alloc_list); 27struct mutex ecryptfs_msg_ctx_lists_mux; | 25static LIST_HEAD(ecryptfs_msg_ctx_free_list); 26static LIST_HEAD(ecryptfs_msg_ctx_alloc_list); 27static struct mutex ecryptfs_msg_ctx_lists_mux; |
28 | 28 |
29struct hlist_head *ecryptfs_daemon_id_hash; 30struct mutex ecryptfs_daemon_id_hash_mux; 31int ecryptfs_hash_buckets; | 29static struct hlist_head *ecryptfs_daemon_id_hash; 30static struct mutex ecryptfs_daemon_id_hash_mux; 31static int ecryptfs_hash_buckets; 32#define ecryptfs_uid_hash(uid) \ 33 hash_long((unsigned long)uid, ecryptfs_hash_buckets) |
32 | 34 |
33unsigned int ecryptfs_msg_counter; 34struct ecryptfs_msg_ctx *ecryptfs_msg_ctx_arr; | 35static unsigned int ecryptfs_msg_counter; 36static struct ecryptfs_msg_ctx *ecryptfs_msg_ctx_arr; |
35 36/** 37 * ecryptfs_acquire_free_msg_ctx 38 * @msg_ctx: The context that was acquired from the free list 39 * 40 * Acquires a context element from the free list and locks the mutex 41 * on the context. Returns zero on success; non-zero on error or upon 42 * failure to acquire a free context element. Be sure to lock the --- 471 unchanged lines hidden --- | 37 38/** 39 * ecryptfs_acquire_free_msg_ctx 40 * @msg_ctx: The context that was acquired from the free list 41 * 42 * Acquires a context element from the free list and locks the mutex 43 * on the context. Returns zero on success; non-zero on error or upon 44 * failure to acquire a free context element. Be sure to lock the --- 471 unchanged lines hidden --- |