Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/fs.h
Context not available. | |||||
#include <linux/wait.h> | #include <linux/wait.h> | ||||
#include <linux/semaphore.h> | #include <linux/semaphore.h> | ||||
#include <linux/spinlock.h> | #include <linux/spinlock.h> | ||||
#include <linux/dcache.h> | |||||
struct module; | struct module; | ||||
struct kiocb; | struct kiocb; | ||||
Context not available. | |||||
typedef struct files_struct *fl_owner_t; | typedef struct files_struct *fl_owner_t; | ||||
struct dentry { | |||||
struct inode *d_inode; | |||||
struct pfs_node *d_pfs_node; | |||||
}; | |||||
struct file_operations; | struct file_operations; | ||||
struct linux_file_wait_queue { | struct linux_file_wait_queue { | ||||
Context not available. | |||||
register_chrdev_region(dev_t dev, unsigned range, const char *name) | register_chrdev_region(dev_t dev, unsigned range, const char *name) | ||||
{ | { | ||||
return 0; | return (0); | ||||
} | } | ||||
static inline void | static inline void | ||||
Context not available. | |||||
const char *name) | const char *name) | ||||
{ | { | ||||
return 0; | return (0); | ||||
} | } | ||||
/* No current support for seek op in FreeBSD */ | /* No current support for seek op in FreeBSD */ | ||||
static inline int | static inline int | ||||
nonseekable_open(struct inode *inode, struct file *filp) | nonseekable_open(struct inode *inode, struct file *filp) | ||||
{ | { | ||||
return 0; | return (0); | ||||
} | } | ||||
extern unsigned int linux_iminor(struct inode *); | extern unsigned int linux_iminor(struct inode *); | ||||
Context not available. | |||||
return (file->_file->f_offset); | return (file->_file->f_offset); | ||||
} | } | ||||
static inline struct inode * | |||||
file_inode(const struct file *f) | |||||
{ | |||||
return (f->f_inode); | |||||
} | |||||
static inline int | |||||
call_mmap(struct file *file, struct vm_area_struct *vma) | |||||
{ | |||||
return (file->f_op->mmap(file, vma)); | |||||
} | |||||
/* Shared memory support */ | /* Shared memory support */ | ||||
unsigned long linux_invalidate_mapping_pages(vm_object_t, pgoff_t, pgoff_t); | unsigned long linux_invalidate_mapping_pages(vm_object_t, pgoff_t, pgoff_t); | ||||
struct page *linux_shmem_read_mapping_page_gfp(vm_object_t, int, gfp_t); | struct page *linux_shmem_read_mapping_page_gfp(vm_object_t, int, gfp_t); | ||||
Context not available. |