Fixed some style bugs in the removal of __P(()). The main ones were
not removing tabs before "__P((", and not outdenting continuation lines to preserve non-KNF lining up of code with parentheses. Switch to KNF formatting and/or rewrap the whole prototype in some cases.
This commit is contained in:
parent
391b5c4a91
commit
c58eb46e8a
@ -144,9 +144,9 @@ struct bio_queue_head {
|
|||||||
|
|
||||||
static __inline void bioq_init(struct bio_queue_head *head);
|
static __inline void bioq_init(struct bio_queue_head *head);
|
||||||
static __inline void bioq_insert_tail(struct bio_queue_head *head,
|
static __inline void bioq_insert_tail(struct bio_queue_head *head,
|
||||||
struct bio *bp);
|
|
||||||
static __inline void bioq_remove(struct bio_queue_head *head,
|
|
||||||
struct bio *bp);
|
struct bio *bp);
|
||||||
|
static __inline void bioq_remove(struct bio_queue_head *head,
|
||||||
|
struct bio *bp);
|
||||||
static __inline struct bio *bioq_first(struct bio_queue_head *head);
|
static __inline struct bio *bioq_first(struct bio_queue_head *head);
|
||||||
|
|
||||||
static __inline void
|
static __inline void
|
||||||
|
@ -138,7 +138,7 @@ typedef int d_open_t(dev_t dev, int oflags, int devtype, struct thread *td);
|
|||||||
typedef int d_close_t(dev_t dev, int fflag, int devtype, struct thread *td);
|
typedef int d_close_t(dev_t dev, int fflag, int devtype, struct thread *td);
|
||||||
typedef void d_strategy_t(struct bio *bp);
|
typedef void d_strategy_t(struct bio *bp);
|
||||||
typedef int d_ioctl_t(dev_t dev, u_long cmd, caddr_t data,
|
typedef int d_ioctl_t(dev_t dev, u_long cmd, caddr_t data,
|
||||||
int fflag, struct thread *td);
|
int fflag, struct thread *td);
|
||||||
typedef int d_dump_t(dev_t dev);
|
typedef int d_dump_t(dev_t dev);
|
||||||
typedef int d_psize_t(dev_t dev);
|
typedef int d_psize_t(dev_t dev);
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ typedef int l_close_t(struct tty *tp, int flag);
|
|||||||
typedef int l_read_t(struct tty *tp, struct uio *uio, int flag);
|
typedef int l_read_t(struct tty *tp, struct uio *uio, int flag);
|
||||||
typedef int l_write_t(struct tty *tp, struct uio *uio, int flag);
|
typedef int l_write_t(struct tty *tp, struct uio *uio, int flag);
|
||||||
typedef int l_ioctl_t(struct tty *tp, u_long cmd, caddr_t data,
|
typedef int l_ioctl_t(struct tty *tp, u_long cmd, caddr_t data,
|
||||||
int flag, struct thread *td);
|
int flag, struct thread *td);
|
||||||
typedef int l_rint_t(int c, struct tty *tp);
|
typedef int l_rint_t(int c, struct tty *tp);
|
||||||
typedef int l_start_t(struct tty *tp);
|
typedef int l_start_t(struct tty *tp);
|
||||||
typedef int l_modem_t(struct tty *tp, int flag);
|
typedef int l_modem_t(struct tty *tp, int flag);
|
||||||
|
@ -460,16 +460,15 @@ struct bio;
|
|||||||
struct bio_queue_head;
|
struct bio_queue_head;
|
||||||
|
|
||||||
int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
|
int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
|
||||||
int wlabel);
|
int wlabel);
|
||||||
void diskerr(struct bio *bp, char *what, int blkdone,
|
void diskerr(struct bio *bp, char *what, int blkdone, struct disklabel *lp);
|
||||||
struct disklabel *lp);
|
|
||||||
dev_t dkmodpart(dev_t dev, int part);
|
dev_t dkmodpart(dev_t dev, int part);
|
||||||
dev_t dkmodslice(dev_t dev, int slice);
|
dev_t dkmodslice(dev_t dev, int slice);
|
||||||
u_int dkunit(dev_t dev);
|
u_int dkunit(dev_t dev);
|
||||||
char *readdisklabel(dev_t dev, struct disklabel *lp);
|
char *readdisklabel(dev_t dev, struct disklabel *lp);
|
||||||
void bioqdisksort(struct bio_queue_head *ap, struct bio *bp);
|
void bioqdisksort(struct bio_queue_head *ap, struct bio *bp);
|
||||||
int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
|
int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
|
||||||
u_long openmask);
|
u_long openmask);
|
||||||
int writedisklabel(dev_t dev, struct disklabel *lp);
|
int writedisklabel(dev_t dev, struct disklabel *lp);
|
||||||
#ifdef __alpha__
|
#ifdef __alpha__
|
||||||
struct buf;
|
struct buf;
|
||||||
|
@ -460,16 +460,15 @@ struct bio;
|
|||||||
struct bio_queue_head;
|
struct bio_queue_head;
|
||||||
|
|
||||||
int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
|
int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
|
||||||
int wlabel);
|
int wlabel);
|
||||||
void diskerr(struct bio *bp, char *what, int blkdone,
|
void diskerr(struct bio *bp, char *what, int blkdone, struct disklabel *lp);
|
||||||
struct disklabel *lp);
|
|
||||||
dev_t dkmodpart(dev_t dev, int part);
|
dev_t dkmodpart(dev_t dev, int part);
|
||||||
dev_t dkmodslice(dev_t dev, int slice);
|
dev_t dkmodslice(dev_t dev, int slice);
|
||||||
u_int dkunit(dev_t dev);
|
u_int dkunit(dev_t dev);
|
||||||
char *readdisklabel(dev_t dev, struct disklabel *lp);
|
char *readdisklabel(dev_t dev, struct disklabel *lp);
|
||||||
void bioqdisksort(struct bio_queue_head *ap, struct bio *bp);
|
void bioqdisksort(struct bio_queue_head *ap, struct bio *bp);
|
||||||
int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
|
int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
|
||||||
u_long openmask);
|
u_long openmask);
|
||||||
int writedisklabel(dev_t dev, struct disklabel *lp);
|
int writedisklabel(dev_t dev, struct disklabel *lp);
|
||||||
#ifdef __alpha__
|
#ifdef __alpha__
|
||||||
struct buf;
|
struct buf;
|
||||||
|
@ -460,16 +460,15 @@ struct bio;
|
|||||||
struct bio_queue_head;
|
struct bio_queue_head;
|
||||||
|
|
||||||
int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
|
int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
|
||||||
int wlabel);
|
int wlabel);
|
||||||
void diskerr(struct bio *bp, char *what, int blkdone,
|
void diskerr(struct bio *bp, char *what, int blkdone, struct disklabel *lp);
|
||||||
struct disklabel *lp);
|
|
||||||
dev_t dkmodpart(dev_t dev, int part);
|
dev_t dkmodpart(dev_t dev, int part);
|
||||||
dev_t dkmodslice(dev_t dev, int slice);
|
dev_t dkmodslice(dev_t dev, int slice);
|
||||||
u_int dkunit(dev_t dev);
|
u_int dkunit(dev_t dev);
|
||||||
char *readdisklabel(dev_t dev, struct disklabel *lp);
|
char *readdisklabel(dev_t dev, struct disklabel *lp);
|
||||||
void bioqdisksort(struct bio_queue_head *ap, struct bio *bp);
|
void bioqdisksort(struct bio_queue_head *ap, struct bio *bp);
|
||||||
int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
|
int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
|
||||||
u_long openmask);
|
u_long openmask);
|
||||||
int writedisklabel(dev_t dev, struct disklabel *lp);
|
int writedisklabel(dev_t dev, struct disklabel *lp);
|
||||||
#ifdef __alpha__
|
#ifdef __alpha__
|
||||||
struct buf;
|
struct buf;
|
||||||
|
@ -81,16 +81,14 @@ struct disklabel;
|
|||||||
int dscheck(struct bio *bp, struct diskslices *ssp);
|
int dscheck(struct bio *bp, struct diskslices *ssp);
|
||||||
void dsclose(dev_t dev, int mode, struct diskslices *ssp);
|
void dsclose(dev_t dev, int mode, struct diskslices *ssp);
|
||||||
void dsgone(struct diskslices **sspp);
|
void dsgone(struct diskslices **sspp);
|
||||||
int dsinit(dev_t dev, struct disklabel *lp,
|
int dsinit(dev_t dev, struct disklabel *lp, struct diskslices **sspp);
|
||||||
struct diskslices **sspp);
|
int dsioctl(dev_t dev, u_long cmd, caddr_t data, int flags,
|
||||||
int dsioctl(dev_t dev, u_long cmd, caddr_t data,
|
struct diskslices **sspp);
|
||||||
int flags, struct diskslices **sspp);
|
|
||||||
int dsisopen(struct diskslices *ssp);
|
int dsisopen(struct diskslices *ssp);
|
||||||
struct diskslices *dsmakeslicestruct(int nslices, struct disklabel *lp);
|
struct diskslices *dsmakeslicestruct(int nslices, struct disklabel *lp);
|
||||||
char *dsname(dev_t dev, int unit, int slice, int part,
|
char *dsname(dev_t dev, int unit, int slice, int part, char *partname);
|
||||||
char *partname);
|
int dsopen(dev_t dev, int mode, u_int flags, struct diskslices **sspp,
|
||||||
int dsopen(dev_t dev, int mode, u_int flags,
|
struct disklabel *lp);
|
||||||
struct diskslices **sspp, struct disklabel *lp);
|
|
||||||
int dssize(dev_t dev, struct diskslices **sspp);
|
int dssize(dev_t dev, struct diskslices **sspp);
|
||||||
|
|
||||||
#endif /* _KERNEL */
|
#endif /* _KERNEL */
|
||||||
|
@ -136,9 +136,9 @@ MALLOC_DECLARE(M_KQUEUE);
|
|||||||
|
|
||||||
struct filterops {
|
struct filterops {
|
||||||
int f_isfd; /* true if ident == filedescriptor */
|
int f_isfd; /* true if ident == filedescriptor */
|
||||||
int (*f_attach) (struct knote *kn);
|
int (*f_attach)(struct knote *kn);
|
||||||
void (*f_detach) (struct knote *kn);
|
void (*f_detach)(struct knote *kn);
|
||||||
int (*f_event) (struct knote *kn, long hint);
|
int (*f_event)(struct knote *kn, long hint);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct knote {
|
struct knote {
|
||||||
@ -188,8 +188,8 @@ struct timespec;
|
|||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int kqueue(void);
|
int kqueue(void);
|
||||||
int kevent(int kq, const struct kevent *changelist, int nchanges,
|
int kevent(int kq, const struct kevent *changelist, int nchanges,
|
||||||
struct kevent *eventlist, int nevents,
|
struct kevent *eventlist, int nevents,
|
||||||
const struct timespec *timeout);
|
const struct timespec *timeout);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* !_KERNEL */
|
#endif /* !_KERNEL */
|
||||||
|
@ -79,22 +79,19 @@ struct file {
|
|||||||
int f_msgcount; /* (f) references from message queue */
|
int f_msgcount; /* (f) references from message queue */
|
||||||
struct ucred *f_cred; /* credentials associated with descriptor */
|
struct ucred *f_cred; /* credentials associated with descriptor */
|
||||||
struct fileops {
|
struct fileops {
|
||||||
int (*fo_read) (struct file *fp, struct uio *uio,
|
int (*fo_read)(struct file *fp, struct uio *uio,
|
||||||
struct ucred *cred, int flags,
|
struct ucred *cred, int flags, struct thread *td);
|
||||||
struct thread *td);
|
int (*fo_write)(struct file *fp, struct uio *uio,
|
||||||
int (*fo_write) (struct file *fp, struct uio *uio,
|
struct ucred *cred, int flags, struct thread *td);
|
||||||
struct ucred *cred, int flags,
|
|
||||||
struct thread *td);
|
|
||||||
#define FOF_OFFSET 1
|
#define FOF_OFFSET 1
|
||||||
int (*fo_ioctl) (struct file *fp, u_long com,
|
int (*fo_ioctl)(struct file *fp, u_long com, caddr_t data,
|
||||||
caddr_t data, struct thread *td);
|
struct thread *td);
|
||||||
int (*fo_poll) (struct file *fp, int events,
|
int (*fo_poll)(struct file *fp, int events,
|
||||||
struct ucred *cred,
|
struct ucred *cred, struct thread *td);
|
||||||
struct thread *td);
|
int (*fo_kqfilter)(struct file *fp, struct knote *kn);
|
||||||
int (*fo_kqfilter) (struct file *fp, struct knote *kn);
|
int (*fo_stat)(struct file *fp, struct stat *sb,
|
||||||
int (*fo_stat) (struct file *fp, struct stat *sb,
|
struct thread *td);
|
||||||
struct thread *td);
|
int (*fo_close)(struct file *fp, struct thread *td);
|
||||||
int (*fo_close) (struct file *fp, struct thread *td);
|
|
||||||
} *f_ops;
|
} *f_ops;
|
||||||
int f_seqcount; /*
|
int f_seqcount; /*
|
||||||
* count of sequential accesses -- cleared
|
* count of sequential accesses -- cleared
|
||||||
|
@ -139,8 +139,8 @@ SLIST_HEAD(sigiolst, sigio);
|
|||||||
#define FILEDESC_LOCK_ASSERT(fd, type) mtx_assert(&(fd)->fd_mtx, (type))
|
#define FILEDESC_LOCK_ASSERT(fd, type) mtx_assert(&(fd)->fd_mtx, (type))
|
||||||
|
|
||||||
int closef(struct file *fp, struct thread *p);
|
int closef(struct file *fp, struct thread *p);
|
||||||
int dupfdopen(struct thread *td, struct filedesc *fdp, int indx,
|
int dupfdopen(struct thread *td, struct filedesc *fdp, int indx, int dfd,
|
||||||
int dfd, int mode, int error);
|
int mode, int error);
|
||||||
int falloc(struct thread *p, struct file **resultfp, int *resultfd);
|
int falloc(struct thread *p, struct file **resultfp, int *resultfd);
|
||||||
int fdalloc(struct thread *p, int want, int *result);
|
int fdalloc(struct thread *p, int want, int *result);
|
||||||
int fdavail(struct thread *td, int n);
|
int fdavail(struct thread *td, int n);
|
||||||
|
@ -76,7 +76,7 @@ int fls(int);
|
|||||||
#endif
|
#endif
|
||||||
int locc(int, char *, u_int);
|
int locc(int, char *, u_int);
|
||||||
void qsort(void *base, size_t nmemb, size_t size,
|
void qsort(void *base, size_t nmemb, size_t size,
|
||||||
int (*compar)(const void *, const void *));
|
int (*compar)(const void *, const void *));
|
||||||
u_long random(void);
|
u_long random(void);
|
||||||
char *index(const char *, int);
|
char *index(const char *, int);
|
||||||
char *rindex(const char *, int);
|
char *rindex(const char *, int);
|
||||||
|
@ -138,7 +138,7 @@ typedef int d_open_t(dev_t dev, int oflags, int devtype, struct thread *td);
|
|||||||
typedef int d_close_t(dev_t dev, int fflag, int devtype, struct thread *td);
|
typedef int d_close_t(dev_t dev, int fflag, int devtype, struct thread *td);
|
||||||
typedef void d_strategy_t(struct bio *bp);
|
typedef void d_strategy_t(struct bio *bp);
|
||||||
typedef int d_ioctl_t(dev_t dev, u_long cmd, caddr_t data,
|
typedef int d_ioctl_t(dev_t dev, u_long cmd, caddr_t data,
|
||||||
int fflag, struct thread *td);
|
int fflag, struct thread *td);
|
||||||
typedef int d_dump_t(dev_t dev);
|
typedef int d_dump_t(dev_t dev);
|
||||||
typedef int d_psize_t(dev_t dev);
|
typedef int d_psize_t(dev_t dev);
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ typedef int l_close_t(struct tty *tp, int flag);
|
|||||||
typedef int l_read_t(struct tty *tp, struct uio *uio, int flag);
|
typedef int l_read_t(struct tty *tp, struct uio *uio, int flag);
|
||||||
typedef int l_write_t(struct tty *tp, struct uio *uio, int flag);
|
typedef int l_write_t(struct tty *tp, struct uio *uio, int flag);
|
||||||
typedef int l_ioctl_t(struct tty *tp, u_long cmd, caddr_t data,
|
typedef int l_ioctl_t(struct tty *tp, u_long cmd, caddr_t data,
|
||||||
int flag, struct thread *td);
|
int flag, struct thread *td);
|
||||||
typedef int l_rint_t(int c, struct tty *tp);
|
typedef int l_rint_t(int c, struct tty *tp);
|
||||||
typedef int l_start_t(struct tty *tp);
|
typedef int l_start_t(struct tty *tp);
|
||||||
typedef int l_modem_t(struct tty *tp, int flag);
|
typedef int l_modem_t(struct tty *tp, int flag);
|
||||||
|
@ -100,19 +100,18 @@ MALLOC_DECLARE(M_IP6NDP); /* for INET6 */
|
|||||||
MALLOC_DECLARE(M_IOV);
|
MALLOC_DECLARE(M_IOV);
|
||||||
|
|
||||||
/* XXX struct malloc_type is unused for contig*(). */
|
/* XXX struct malloc_type is unused for contig*(). */
|
||||||
void contigfree(void *addr, unsigned long size,
|
void contigfree(void *addr, unsigned long size, struct malloc_type *type);
|
||||||
struct malloc_type *type);
|
void *contigmalloc(unsigned long size, struct malloc_type *type, int flags,
|
||||||
void *contigmalloc(unsigned long size, struct malloc_type *type,
|
unsigned long low, unsigned long high, unsigned long alignment,
|
||||||
int flags, unsigned long low, unsigned long high,
|
unsigned long boundary);
|
||||||
unsigned long alignment, unsigned long boundary);
|
|
||||||
void free(void *addr, struct malloc_type *type);
|
void free(void *addr, struct malloc_type *type);
|
||||||
void *malloc(unsigned long size, struct malloc_type *type, int flags);
|
void *malloc(unsigned long size, struct malloc_type *type, int flags);
|
||||||
void malloc_init(void *);
|
void malloc_init(void *);
|
||||||
void malloc_uninit(void *);
|
void malloc_uninit(void *);
|
||||||
void *realloc(void *addr, unsigned long size,
|
void *realloc(void *addr, unsigned long size, struct malloc_type *type,
|
||||||
struct malloc_type *type, int flags);
|
int flags);
|
||||||
void *reallocf(void *addr, unsigned long size,
|
void *reallocf(void *addr, unsigned long size, struct malloc_type *type,
|
||||||
struct malloc_type *type, int flags);
|
int flags);
|
||||||
#endif /* _KERNEL */
|
#endif /* _KERNEL */
|
||||||
|
|
||||||
#endif /* !_SYS_MALLOC_H_ */
|
#endif /* !_SYS_MALLOC_H_ */
|
||||||
|
@ -345,32 +345,30 @@ struct mount_args;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct vfsops {
|
struct vfsops {
|
||||||
int (*vfs_mount) (struct mount *mp, char *path, caddr_t data,
|
int (*vfs_mount)(struct mount *mp, char *path, caddr_t data,
|
||||||
struct nameidata *ndp, struct thread *td);
|
struct nameidata *ndp, struct thread *td);
|
||||||
int (*vfs_start) (struct mount *mp, int flags,
|
int (*vfs_start)(struct mount *mp, int flags, struct thread *td);
|
||||||
struct thread *td);
|
int (*vfs_unmount)(struct mount *mp, int mntflags,
|
||||||
int (*vfs_unmount) (struct mount *mp, int mntflags,
|
struct thread *td);
|
||||||
struct thread *td);
|
int (*vfs_root)(struct mount *mp, struct vnode **vpp);
|
||||||
int (*vfs_root) (struct mount *mp, struct vnode **vpp);
|
int (*vfs_quotactl)(struct mount *mp, int cmds, uid_t uid,
|
||||||
int (*vfs_quotactl) (struct mount *mp, int cmds, uid_t uid,
|
caddr_t arg, struct thread *td);
|
||||||
caddr_t arg, struct thread *td);
|
int (*vfs_statfs)(struct mount *mp, struct statfs *sbp,
|
||||||
int (*vfs_statfs) (struct mount *mp, struct statfs *sbp,
|
struct thread *td);
|
||||||
struct thread *td);
|
int (*vfs_sync)(struct mount *mp, int waitfor, struct ucred *cred,
|
||||||
int (*vfs_sync) (struct mount *mp, int waitfor,
|
struct thread *td);
|
||||||
struct ucred *cred, struct thread *td);
|
int (*vfs_vget)(struct mount *mp, ino_t ino, int flags,
|
||||||
int (*vfs_vget) (struct mount *mp, ino_t ino, int flags,
|
struct vnode **vpp);
|
||||||
struct vnode **vpp);
|
int (*vfs_fhtovp)(struct mount *mp, struct fid *fhp,
|
||||||
int (*vfs_fhtovp) (struct mount *mp, struct fid *fhp,
|
struct vnode **vpp);
|
||||||
struct vnode **vpp);
|
|
||||||
int (*vfs_checkexp)(struct mount *mp, struct sockaddr *nam,
|
int (*vfs_checkexp)(struct mount *mp, struct sockaddr *nam,
|
||||||
int *extflagsp, struct ucred **credanonp);
|
int *extflagsp, struct ucred **credanonp);
|
||||||
int (*vfs_vptofh) (struct vnode *vp, struct fid *fhp);
|
int (*vfs_vptofh)(struct vnode *vp, struct fid *fhp);
|
||||||
int (*vfs_init) (struct vfsconf *);
|
int (*vfs_init)(struct vfsconf *);
|
||||||
int (*vfs_uninit) (struct vfsconf *);
|
int (*vfs_uninit)(struct vfsconf *);
|
||||||
int (*vfs_extattrctl)(struct mount *mp, int cmd,
|
int (*vfs_extattrctl)(struct mount *mp, int cmd,
|
||||||
struct vnode *filename_vp,
|
struct vnode *filename_vp, int attrnamespace,
|
||||||
int attrnamespace, const char *attrname,
|
const char *attrname, struct thread *td);
|
||||||
struct thread *td);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define VFS_MOUNT(MP, PATH, DATA, NDP, P) \
|
#define VFS_MOUNT(MP, PATH, DATA, NDP, P) \
|
||||||
@ -414,18 +412,18 @@ extern char *mountrootfsname;
|
|||||||
* exported vnode operations
|
* exported vnode operations
|
||||||
*/
|
*/
|
||||||
int dounmount(struct mount *, int, struct thread *td);
|
int dounmount(struct mount *, int, struct thread *td);
|
||||||
int vfs_mount (struct thread *td, const char *type, char *path,
|
int vfs_mount(struct thread *td, const char *type, char *path,
|
||||||
int flags, void *data);
|
int flags, void *data);
|
||||||
int vfs_setpublicfs /* set publicly exported fs */
|
int vfs_setpublicfs /* set publicly exported fs */
|
||||||
(struct mount *, struct netexport *, struct export_args *);
|
(struct mount *, struct netexport *, struct export_args *);
|
||||||
int vfs_lock(struct mount *); /* lock a vfs */
|
int vfs_lock(struct mount *); /* lock a vfs */
|
||||||
void vfs_msync(struct mount *, int);
|
void vfs_msync(struct mount *, int);
|
||||||
void vfs_unlock(struct mount *); /* unlock a vfs */
|
void vfs_unlock(struct mount *); /* unlock a vfs */
|
||||||
int vfs_busy(struct mount *, int, struct mtx *, struct thread *td);
|
int vfs_busy(struct mount *, int, struct mtx *, struct thread *td);
|
||||||
int vfs_export /* process mount export info */
|
int vfs_export /* process mount export info */
|
||||||
(struct mount *, struct export_args *);
|
(struct mount *, struct export_args *);
|
||||||
struct netcred *vfs_export_lookup /* lookup host in fs export list */
|
struct netcred *vfs_export_lookup /* lookup host in fs export list */
|
||||||
(struct mount *, struct sockaddr *);
|
(struct mount *, struct sockaddr *);
|
||||||
int vfs_allocate_syncvnode(struct mount *);
|
int vfs_allocate_syncvnode(struct mount *);
|
||||||
void vfs_getnewfsid(struct mount *);
|
void vfs_getnewfsid(struct mount *);
|
||||||
dev_t vfs_getrootfsid(struct mount *);
|
dev_t vfs_getrootfsid(struct mount *);
|
||||||
|
@ -49,7 +49,7 @@ struct msgbuf {
|
|||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
extern int msgbuftrigger;
|
extern int msgbuftrigger;
|
||||||
extern struct msgbuf *msgbufp;
|
extern struct msgbuf *msgbufp;
|
||||||
void msgbufinit (void *ptr, size_t size);
|
void msgbufinit(void *ptr, size_t size);
|
||||||
|
|
||||||
#if !defined(MSGBUF_SIZE)
|
#if !defined(MSGBUF_SIZE)
|
||||||
#define MSGBUF_SIZE 32768
|
#define MSGBUF_SIZE 32768
|
||||||
|
@ -200,12 +200,12 @@ struct pr_usrreqs {
|
|||||||
int (*pru_accept)(struct socket *so, struct sockaddr **nam);
|
int (*pru_accept)(struct socket *so, struct sockaddr **nam);
|
||||||
int (*pru_attach)(struct socket *so, int proto, struct thread *td);
|
int (*pru_attach)(struct socket *so, int proto, struct thread *td);
|
||||||
int (*pru_bind)(struct socket *so, struct sockaddr *nam,
|
int (*pru_bind)(struct socket *so, struct sockaddr *nam,
|
||||||
struct thread *td);
|
struct thread *td);
|
||||||
int (*pru_connect)(struct socket *so, struct sockaddr *nam,
|
int (*pru_connect)(struct socket *so, struct sockaddr *nam,
|
||||||
struct thread *td);
|
struct thread *td);
|
||||||
int (*pru_connect2)(struct socket *so1, struct socket *so2);
|
int (*pru_connect2)(struct socket *so1, struct socket *so2);
|
||||||
int (*pru_control)(struct socket *so, u_long cmd, caddr_t data,
|
int (*pru_control)(struct socket *so, u_long cmd, caddr_t data,
|
||||||
struct ifnet *ifp, struct thread *td);
|
struct ifnet *ifp, struct thread *td);
|
||||||
int (*pru_detach)(struct socket *so);
|
int (*pru_detach)(struct socket *so);
|
||||||
int (*pru_disconnect)(struct socket *so);
|
int (*pru_disconnect)(struct socket *so);
|
||||||
int (*pru_listen)(struct socket *so, struct thread *td);
|
int (*pru_listen)(struct socket *so, struct thread *td);
|
||||||
@ -213,8 +213,8 @@ struct pr_usrreqs {
|
|||||||
int (*pru_rcvd)(struct socket *so, int flags);
|
int (*pru_rcvd)(struct socket *so, int flags);
|
||||||
int (*pru_rcvoob)(struct socket *so, struct mbuf *m, int flags);
|
int (*pru_rcvoob)(struct socket *so, struct mbuf *m, int flags);
|
||||||
int (*pru_send)(struct socket *so, int flags, struct mbuf *m,
|
int (*pru_send)(struct socket *so, int flags, struct mbuf *m,
|
||||||
struct sockaddr *addr, struct mbuf *control,
|
struct sockaddr *addr, struct mbuf *control,
|
||||||
struct thread *td);
|
struct thread *td);
|
||||||
#define PRUS_OOB 0x1
|
#define PRUS_OOB 0x1
|
||||||
#define PRUS_EOF 0x2
|
#define PRUS_EOF 0x2
|
||||||
#define PRUS_MORETOCOME 0x4
|
#define PRUS_MORETOCOME 0x4
|
||||||
@ -231,23 +231,21 @@ struct pr_usrreqs {
|
|||||||
* the generic code, these just point to those routines.
|
* the generic code, these just point to those routines.
|
||||||
*/
|
*/
|
||||||
int (*pru_sosend)(struct socket *so, struct sockaddr *addr,
|
int (*pru_sosend)(struct socket *so, struct sockaddr *addr,
|
||||||
struct uio *uio, struct mbuf *top,
|
struct uio *uio, struct mbuf *top, struct mbuf *control,
|
||||||
struct mbuf *control, int flags,
|
int flags, struct thread *td);
|
||||||
struct thread *td);
|
int (*pru_soreceive)(struct socket *so, struct sockaddr **paddr,
|
||||||
int (*pru_soreceive)(struct socket *so,
|
struct uio *uio, struct mbuf **mp0, struct mbuf **controlp,
|
||||||
struct sockaddr **paddr,
|
int *flagsp);
|
||||||
struct uio *uio, struct mbuf **mp0,
|
|
||||||
struct mbuf **controlp, int *flagsp);
|
|
||||||
int (*pru_sopoll)(struct socket *so, int events,
|
int (*pru_sopoll)(struct socket *so, int events,
|
||||||
struct ucred *cred, struct thread *td);
|
struct ucred *cred, struct thread *td);
|
||||||
};
|
};
|
||||||
|
|
||||||
int pru_accept_notsupp(struct socket *so, struct sockaddr **nam);
|
int pru_accept_notsupp(struct socket *so, struct sockaddr **nam);
|
||||||
int pru_connect_notsupp(struct socket *so, struct sockaddr *nam,
|
int pru_connect_notsupp(struct socket *so, struct sockaddr *nam,
|
||||||
struct thread *td);
|
struct thread *td);
|
||||||
int pru_connect2_notsupp(struct socket *so1, struct socket *so2);
|
int pru_connect2_notsupp(struct socket *so1, struct socket *so2);
|
||||||
int pru_control_notsupp(struct socket *so, u_long cmd, caddr_t data,
|
int pru_control_notsupp(struct socket *so, u_long cmd, caddr_t data,
|
||||||
struct ifnet *ifp, struct thread *td);
|
struct ifnet *ifp, struct thread *td);
|
||||||
int pru_listen_notsupp(struct socket *so, struct thread *td);
|
int pru_listen_notsupp(struct socket *so, struct thread *td);
|
||||||
int pru_rcvd_notsupp(struct socket *so, int flags);
|
int pru_rcvd_notsupp(struct socket *so, int flags);
|
||||||
int pru_rcvoob_notsupp(struct socket *so, struct mbuf *m, int flags);
|
int pru_rcvoob_notsupp(struct socket *so, struct mbuf *m, int flags);
|
||||||
|
@ -369,7 +369,7 @@ void sbflush(struct sockbuf *sb);
|
|||||||
void sbinsertoob(struct sockbuf *sb, struct mbuf *m0);
|
void sbinsertoob(struct sockbuf *sb, struct mbuf *m0);
|
||||||
void sbrelease(struct sockbuf *sb, struct socket *so);
|
void sbrelease(struct sockbuf *sb, struct socket *so);
|
||||||
int sbreserve(struct sockbuf *sb, u_long cc, struct socket *so,
|
int sbreserve(struct sockbuf *sb, u_long cc, struct socket *so,
|
||||||
struct thread *td);
|
struct thread *td);
|
||||||
void sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb);
|
void sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb);
|
||||||
int sbwait(struct sockbuf *sb);
|
int sbwait(struct sockbuf *sb);
|
||||||
int sb_lock(struct sockbuf *sb);
|
int sb_lock(struct sockbuf *sb);
|
||||||
@ -397,8 +397,7 @@ struct socket *
|
|||||||
sodropablereq(struct socket *head);
|
sodropablereq(struct socket *head);
|
||||||
struct socket *
|
struct socket *
|
||||||
sonewconn(struct socket *head, int connstatus);
|
sonewconn(struct socket *head, int connstatus);
|
||||||
int sooptcopyin(struct sockopt *sopt, void *buf, size_t len,
|
int sooptcopyin(struct sockopt *sopt, void *buf, size_t len, size_t minlen);
|
||||||
size_t minlen);
|
|
||||||
int sooptcopyout(struct sockopt *sopt, void *buf, size_t len);
|
int sooptcopyout(struct sockopt *sopt, void *buf, size_t len);
|
||||||
|
|
||||||
/* XXX; prepare mbuf for (__FreeBSD__ < 3) routines. */
|
/* XXX; prepare mbuf for (__FreeBSD__ < 3) routines. */
|
||||||
@ -407,15 +406,14 @@ int soopt_mcopyin(struct sockopt *sopt, struct mbuf *m);
|
|||||||
int soopt_mcopyout(struct sockopt *sopt, struct mbuf *m);
|
int soopt_mcopyout(struct sockopt *sopt, struct mbuf *m);
|
||||||
|
|
||||||
int sopoll(struct socket *so, int events, struct ucred *cred,
|
int sopoll(struct socket *so, int events, struct ucred *cred,
|
||||||
struct thread *td);
|
struct thread *td);
|
||||||
int soreceive(struct socket *so, struct sockaddr **paddr,
|
int soreceive(struct socket *so, struct sockaddr **paddr, struct uio *uio,
|
||||||
struct uio *uio, struct mbuf **mp0,
|
struct mbuf **mp0, struct mbuf **controlp, int *flagsp);
|
||||||
struct mbuf **controlp, int *flagsp);
|
|
||||||
int soreserve(struct socket *so, u_long sndcc, u_long rcvcc);
|
int soreserve(struct socket *so, u_long sndcc, u_long rcvcc);
|
||||||
void sorflush(struct socket *so);
|
void sorflush(struct socket *so);
|
||||||
int sosend(struct socket *so, struct sockaddr *addr, struct uio *uio,
|
int sosend(struct socket *so, struct sockaddr *addr, struct uio *uio,
|
||||||
struct mbuf *top, struct mbuf *control, int flags,
|
struct mbuf *top, struct mbuf *control, int flags,
|
||||||
struct thread *td);
|
struct thread *td);
|
||||||
int sosetopt(struct socket *so, struct sockopt *sopt);
|
int sosetopt(struct socket *so, struct sockopt *sopt);
|
||||||
int soshutdown(struct socket *so, int how);
|
int soshutdown(struct socket *so, int how);
|
||||||
void sotoxsocket(struct socket *so, struct xsocket *xso);
|
void sotoxsocket(struct socket *so, struct xsocket *xso);
|
||||||
|
@ -68,16 +68,14 @@ struct sysentvec {
|
|||||||
/* translate trap-to-signal mapping */
|
/* translate trap-to-signal mapping */
|
||||||
int (*sv_fixup)(register_t **, struct image_params *);
|
int (*sv_fixup)(register_t **, struct image_params *);
|
||||||
/* stack fixup function */
|
/* stack fixup function */
|
||||||
void (*sv_sendsig)(void (*)(int), int,
|
void (*sv_sendsig)(void (*)(int), int, struct __sigset *,
|
||||||
struct __sigset *, u_long);
|
u_long); /* send signal */
|
||||||
/* send signal */
|
|
||||||
char *sv_sigcode; /* start of sigtramp code */
|
char *sv_sigcode; /* start of sigtramp code */
|
||||||
int *sv_szsigcode; /* size of sigtramp code */
|
int *sv_szsigcode; /* size of sigtramp code */
|
||||||
void (*sv_prepsyscall)(struct trapframe *, int *,
|
void (*sv_prepsyscall)(struct trapframe *, int *, u_int *,
|
||||||
u_int *, caddr_t *);
|
caddr_t *);
|
||||||
char *sv_name; /* name of binary type */
|
char *sv_name; /* name of binary type */
|
||||||
int (*sv_coredump)(struct thread *, struct vnode *,
|
int (*sv_coredump)(struct thread *, struct vnode *, off_t);
|
||||||
off_t);
|
|
||||||
/* function to dump core, or NULL */
|
/* function to dump core, or NULL */
|
||||||
int (*sv_imgact_try)(struct image_params *);
|
int (*sv_imgact_try)(struct image_params *);
|
||||||
int sv_minsigstksz; /* minimum signal stack size */
|
int sv_minsigstksz; /* minimum signal stack size */
|
||||||
@ -124,7 +122,7 @@ SYSCALL_MODULE(syscallname, \
|
|||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
int syscall_register(int *offset, struct sysent *new_sysent,
|
int syscall_register(int *offset, struct sysent *new_sysent,
|
||||||
struct sysent *old_sysent);
|
struct sysent *old_sysent);
|
||||||
int syscall_deregister(int *offset, struct sysent *old_sysent);
|
int syscall_deregister(int *offset, struct sysent *old_sysent);
|
||||||
int syscall_module_handler(struct module *mod, int what, void *arg);
|
int syscall_module_handler(struct module *mod, int what, void *arg);
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ void init_param1(void);
|
|||||||
void init_param2(int physpages);
|
void init_param2(int physpages);
|
||||||
void tablefull(const char *);
|
void tablefull(const char *);
|
||||||
int kvprintf(char const *, void (*)(int, void*), void *, int,
|
int kvprintf(char const *, void (*)(int, void*), void *, int,
|
||||||
_BSD_VA_LIST_) __printflike(1, 0);
|
_BSD_VA_LIST_) __printflike(1, 0);
|
||||||
void log(int, const char *, ...) __printflike(2, 3);
|
void log(int, const char *, ...) __printflike(2, 3);
|
||||||
void log_console(struct uio *);
|
void log_console(struct uio *);
|
||||||
int printf(const char *, ...) __printflike(1, 2);
|
int printf(const char *, ...) __printflike(1, 2);
|
||||||
@ -166,9 +166,9 @@ void bzero(void *buf, size_t len);
|
|||||||
void *memcpy(void *to, const void *from, size_t len);
|
void *memcpy(void *to, const void *from, size_t len);
|
||||||
|
|
||||||
int copystr(const void *kfaddr, void *kdaddr, size_t len,
|
int copystr(const void *kfaddr, void *kdaddr, size_t len,
|
||||||
size_t *lencopied);
|
size_t *lencopied);
|
||||||
int copyinstr(const void *udaddr, void *kaddr, size_t len,
|
int copyinstr(const void *udaddr, void *kaddr, size_t len,
|
||||||
size_t *lencopied);
|
size_t *lencopied);
|
||||||
int copyin(const void *udaddr, void *kaddr, size_t len);
|
int copyin(const void *udaddr, void *kaddr, size_t len);
|
||||||
int copyout(const void *kaddr, void *udaddr, size_t len);
|
int copyout(const void *kaddr, void *udaddr, size_t len);
|
||||||
|
|
||||||
@ -269,8 +269,7 @@ int at_exit(exitlist_fn function);
|
|||||||
int rm_at_exit(exitlist_fn function);
|
int rm_at_exit(exitlist_fn function);
|
||||||
|
|
||||||
/* Fork callout list declarations. */
|
/* Fork callout list declarations. */
|
||||||
typedef void (*forklist_fn)(struct proc *parent, struct proc *child,
|
typedef void (*forklist_fn)(struct proc *parent, struct proc *child, int flags);
|
||||||
int flags);
|
|
||||||
|
|
||||||
int at_fork(forklist_fn function);
|
int at_fork(forklist_fn function);
|
||||||
int rm_at_fork(forklist_fn function);
|
int rm_at_fork(forklist_fn function);
|
||||||
@ -297,7 +296,7 @@ extern watchdog_tickle_fn wdog_tickler;
|
|||||||
* less often.
|
* less often.
|
||||||
*/
|
*/
|
||||||
int msleep(void *chan, struct mtx *mtx, int pri, const char *wmesg,
|
int msleep(void *chan, struct mtx *mtx, int pri, const char *wmesg,
|
||||||
int timo);
|
int timo);
|
||||||
#define tsleep(chan, pri, wmesg, timo) msleep(chan, NULL, pri, wmesg, timo)
|
#define tsleep(chan, pri, wmesg, timo) msleep(chan, NULL, pri, wmesg, timo)
|
||||||
void wakeup(void *chan);
|
void wakeup(void *chan);
|
||||||
void wakeup_one(void *chan);
|
void wakeup_one(void *chan);
|
||||||
|
Loading…
Reference in New Issue
Block a user