2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 #define __CELL_H_ENV_ 1
13 #include "cm_server.h"
15 /* a cell structure */
16 typedef struct cm_cell {
17 long cellID; /* cell ID */
18 struct cm_cell *nextp; /* locked by cm_cellLock */
19 char *namep; /* cell name; never changes */
20 struct cm_serverRef *vlServersp; /* locked by cm_serverLock */
21 osi_mutex_t mx; /* mutex locking fields (flags) */
22 long flags; /* locked by mx */
25 #define CM_CELLFLAG_SUID 1 /* setuid flag; not yet used */
27 extern void cm_InitCell(void);
29 extern cm_cell_t *cm_GetCell(char *namep, long flags);
31 extern cm_cell_t *cm_FindCellByID(long cellID);
33 extern void cm_ChangeRankCellVLServer(cm_server_t *tsp);
35 extern osi_rwlock_t cm_cellLock;
37 extern cm_cell_t *cm_allCellsp;
39 #endif /* __CELL_H_ENV_ */