Moved ipc flags manipulation to ipc.h glue file

This commit is contained in:
Bahadir Balban
2009-05-28 13:02:37 +03:00
parent ba31e1b823
commit e61e9e9533
4 changed files with 57 additions and 49 deletions

View File

@@ -134,42 +134,6 @@ static inline void set_task_ids(struct ktcb *task, struct task_ids *ids)
task->tgid = ids->tgid;
}
static inline void tcb_set_ipc_flags(struct ktcb *task,
unsigned int flags)
{
task->ipc_flags = flags;
}
static inline unsigned int tcb_get_ipc_flags(struct ktcb *task)
{
return task->ipc_flags;
}
static inline unsigned int
ipc_flags_set_type(unsigned int flags, unsigned int type)
{
flags &= ~IPC_FLAGS_TYPE_MASK;
flags |= type & IPC_FLAGS_TYPE_MASK;
return flags;
}
static inline unsigned int ipc_flags_get_type(unsigned int flags)
{
return flags & IPC_FLAGS_TYPE_MASK;
}
static inline void tcb_set_ipc_type(struct ktcb *task,
unsigned int type)
{
task->ipc_flags = ipc_flags_set_type(task->ipc_flags,
type);
}
static inline unsigned int tcb_get_ipc_type(struct ktcb *task)
{
return ipc_flags_get_type(task->ipc_flags);
}
#define THREAD_IDS_MAX 1024
#define SPACE_IDS_MAX 1024