diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 11:33:25 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 11:33:25 -0400 |
| commit | c32f1a34ff1097110469a240ea4539dc9c101e96 (patch) | |
| tree | eda863205e83afe54cbedcf15cdac416cdec2cf5 /arch/sparc/include/asm/msgbuf.h | |
| parent | 4f31f3080943c7e3541f07df326f06d598a067d0 (diff) | |
| parent | 04d91cb8163f7f946e348b2362a6e5dfa5f06b13 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
sparc: Set CONFIG_HAVE_ARCH_TRACEHOOK
sparc: Add task_pt_regs().
sparc: Add call to tracehook_signal_handler().
sparc: Create and use TIF_NOTIFY_RESUME.
sparc: Use tracehook routines in syscall_trace().
sparc64: tracehook: CONFIG_HAVE_ARCH_TRACEHOOK
sparc: Add user_stack_pointer().
sparc64: tracehook_signal_handler
sparc64: tracehook: TIF_NOTIFY_RESUME
sparc: Add asm/syscall.h
sparc64: tracehook syscall
sparc: enable headers_export again
sparc, sparc64: use arch/sparc/include
Diffstat (limited to 'arch/sparc/include/asm/msgbuf.h')
| -rw-r--r-- | arch/sparc/include/asm/msgbuf.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/msgbuf.h b/arch/sparc/include/asm/msgbuf.h new file mode 100644 index 000000000000..efc7cbe9788f --- /dev/null +++ b/arch/sparc/include/asm/msgbuf.h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | #ifndef _SPARC_MSGBUF_H | ||
| 2 | #define _SPARC_MSGBUF_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * The msqid64_ds structure for sparc64 architecture. | ||
| 6 | * Note extra padding because this structure is passed back and forth | ||
| 7 | * between kernel and user space. | ||
| 8 | * | ||
| 9 | * Pad space is left for: | ||
| 10 | * - 64-bit time_t to solve y2038 problem | ||
| 11 | * - 2 miscellaneous 32-bit values | ||
| 12 | */ | ||
| 13 | |||
| 14 | #if defined(__sparc__) && defined(__arch64__) | ||
| 15 | # define PADDING(x) | ||
| 16 | #else | ||
| 17 | # define PADDING(x) unsigned int x; | ||
| 18 | #endif | ||
| 19 | |||
| 20 | |||
| 21 | struct msqid64_ds { | ||
| 22 | struct ipc64_perm msg_perm; | ||
| 23 | PADDING(__pad1) | ||
| 24 | __kernel_time_t msg_stime; /* last msgsnd time */ | ||
| 25 | PADDING(__pad2) | ||
| 26 | __kernel_time_t msg_rtime; /* last msgrcv time */ | ||
| 27 | PADDING(__pad3) | ||
| 28 | __kernel_time_t msg_ctime; /* last change time */ | ||
| 29 | unsigned long msg_cbytes; /* current number of bytes on queue */ | ||
| 30 | unsigned long msg_qnum; /* number of messages in queue */ | ||
| 31 | unsigned long msg_qbytes; /* max number of bytes on queue */ | ||
| 32 | __kernel_pid_t msg_lspid; /* pid of last msgsnd */ | ||
| 33 | __kernel_pid_t msg_lrpid; /* last receive pid */ | ||
| 34 | unsigned long __unused1; | ||
| 35 | unsigned long __unused2; | ||
| 36 | }; | ||
| 37 | #undef PADDING | ||
| 38 | #endif /* _SPARC_MSGBUF_H */ | ||
