[PATCH] unpaged: copy_page_range vma
[linux-2.6.22.y-op.git] / fs / relayfs / buffers.h
blob37a12493f641df35b229599f0369ad653c998d8c
1 #ifndef _BUFFERS_H
2 #define _BUFFERS_H
4 /* This inspired by rtai/shmem */
5 #define FIX_SIZE(x) (((x) - 1) & PAGE_MASK) + PAGE_SIZE
7 extern int relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma);
8 extern struct rchan_buf *relay_create_buf(struct rchan *chan);
9 extern void relay_destroy_buf(struct rchan_buf *buf);
10 extern void relay_remove_buf(struct kref *kref);
12 #endif/* _BUFFERS_H */