summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2000-05-26 02:09:24 +0000
committerjake <jake@FreeBSD.org>2000-05-26 02:09:24 +0000
commit961b97d43458f3c57241940cabebb3bedf7e4c00 (patch)
tree6014972d9b90b4e3a8b20dbea641a88cf6355c13
parent06b64672180d9b04ae6d35db819c854df3c3c684 (diff)
downloadFreeBSD-src-961b97d43458f3c57241940cabebb3bedf7e4c00.zip
FreeBSD-src-961b97d43458f3c57241940cabebb3bedf7e4c00.tar.gz
Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen. Requested by: msmith and others
-rw-r--r--crypto/openssh/pam_ssh/pam_ssh.c4
-rw-r--r--gnu/usr.bin/binutils/gdb/freebsd-uthread.c4
-rw-r--r--include/mpool.h8
-rw-r--r--lib/libc/net/name6.c2
-rw-r--r--lib/libc_r/uthread/pthread_private.h40
-rw-r--r--lib/libc_r/uthread/uthread_file.c6
-rw-r--r--lib/libkse/thread/thr_private.h40
-rw-r--r--lib/libncp/ncpl_rcfile.c6
-rw-r--r--lib/libpam/modules/pam_ssh/pam_ssh.c4
-rw-r--r--lib/libpthread/thread/thr_private.h40
-rw-r--r--lib/libstand/if_ether.h6
-rw-r--r--libexec/rtld-elf/rtld.c2
-rw-r--r--libexec/rtld-elf/rtld.h8
-rw-r--r--sys/alpha/alpha/busdma_machdep.c10
-rw-r--r--sys/alpha/alpha/interrupt.c4
-rw-r--r--sys/alpha/include/pmap.h8
-rw-r--r--sys/alpha/tc/espvar.h4
-rw-r--r--sys/amd64/amd64/busdma_machdep.c10
-rw-r--r--sys/amd64/include/pmap.h8
-rw-r--r--sys/boot/common/bootstrap.h6
-rw-r--r--sys/boot/common/pnp.c2
-rw-r--r--sys/cam/cam_ccb.h8
-rw-r--r--sys/cam/cam_periph.h8
-rw-r--r--sys/cam/cam_queue.h6
-rw-r--r--sys/cam/cam_xpt.c31
-rw-r--r--sys/cam/scsi/scsi_cd.c12
-rw-r--r--sys/cam/scsi/scsi_da.c8
-rw-r--r--sys/cam/scsi/scsi_pt.c2
-rw-r--r--sys/cam/scsi/scsi_targ_bh.c2
-rw-r--r--sys/cam/scsi/scsi_target.c2
-rw-r--r--sys/cam/scsi/scsi_targetio.h2
-rw-r--r--sys/compat/linux/linux_ioctl.c4
-rw-r--r--sys/compat/svr4/svr4_socket.c4
-rw-r--r--sys/contrib/softupdates/ffs_softdep.c6
-rw-r--r--sys/contrib/softupdates/softdep.h44
-rw-r--r--sys/dev/advansys/advlib.h6
-rw-r--r--sys/dev/advansys/adwlib.h10
-rw-r--r--sys/dev/aha/ahareg.h10
-rw-r--r--sys/dev/ahb/ahbreg.h6
-rw-r--r--sys/dev/aic/aicvar.h2
-rw-r--r--sys/dev/aic7xxx/aic7xxx.h10
-rw-r--r--sys/dev/aic7xxx/aicasm.c6
-rw-r--r--sys/dev/aic7xxx/aicasm.h4
-rw-r--r--sys/dev/aic7xxx/aicasm/aicasm.c6
-rw-r--r--sys/dev/aic7xxx/aicasm/aicasm.h4
-rw-r--r--sys/dev/aic7xxx/aicasm/aicasm_scan.l4
-rw-r--r--sys/dev/aic7xxx/aicasm/aicasm_symbol.h14
-rw-r--r--sys/dev/aic7xxx/aicasm_scan.l4
-rw-r--r--sys/dev/aic7xxx/aicasm_symbol.h14
-rw-r--r--sys/dev/aic7xxx/sequencer.h2
-rw-r--r--sys/dev/amd/amd.h4
-rw-r--r--sys/dev/amr/amrvar.h6
-rw-r--r--sys/dev/ata/ata-all.h4
-rw-r--r--sys/dev/ata/ata-disk.h2
-rw-r--r--sys/dev/ata/atapi-all.h2
-rw-r--r--sys/dev/awi/awivar.h4
-rw-r--r--sys/dev/buslogic/btreg.h10
-rw-r--r--sys/dev/dpt/dpt.h14
-rw-r--r--sys/dev/eisa/eisaconf.c8
-rw-r--r--sys/dev/ida/idavar.h8
-rw-r--r--sys/dev/kbd/kbd.c4
-rw-r--r--sys/dev/kbd/kbdreg.h2
-rw-r--r--sys/dev/mii/miivar.h4
-rw-r--r--sys/dev/mlx/mlxvar.h6
-rw-r--r--sys/dev/pccard/pccardvar.h8
-rw-r--r--sys/dev/pci/pci.c6
-rw-r--r--sys/dev/pcic/i82365var.h4
-rw-r--r--sys/dev/sk/if_skreg.h6
-rw-r--r--sys/dev/sound/pci/emu10k1.c4
-rw-r--r--sys/dev/streams/streams.c4
-rw-r--r--sys/dev/syscons/scterm.c2
-rw-r--r--sys/dev/syscons/scvidctl.c2
-rw-r--r--sys/dev/syscons/syscons.h4
-rw-r--r--sys/dev/ti/if_tireg.h10
-rw-r--r--sys/dev/usb/ohcivar.h6
-rw-r--r--sys/dev/usb/uhci.c2
-rw-r--r--sys/dev/usb/uhcivar.h6
-rw-r--r--sys/dev/usb/usb.c4
-rw-r--r--sys/dev/usb/usb_mem.h2
-rw-r--r--sys/dev/usb/usbdivar.h8
-rw-r--r--sys/dev/vn/vn.c4
-rw-r--r--sys/fs/fdescfs/fdesc.h2
-rw-r--r--sys/fs/fdescfs/fdesc_vnops.c2
-rw-r--r--sys/fs/fifofs/fifo_vnops.c4
-rw-r--r--sys/fs/hpfs/hpfs.h2
-rw-r--r--sys/fs/hpfs/hpfs_hash.c2
-rw-r--r--sys/fs/ntfs/ntfs_ihash.c2
-rw-r--r--sys/fs/ntfs/ntfs_inode.h8
-rw-r--r--sys/fs/ntfs/ntfs_subr.h2
-rw-r--r--sys/fs/nullfs/null.h2
-rw-r--r--sys/fs/nullfs/null_subr.c2
-rw-r--r--sys/fs/nwfs/nwfs_node.c2
-rw-r--r--sys/fs/nwfs/nwfs_node.h2
-rw-r--r--sys/fs/umapfs/umap.h2
-rw-r--r--sys/fs/umapfs/umap_subr.c2
-rw-r--r--sys/fs/unionfs/union.h2
-rw-r--r--sys/fs/unionfs/union_subr.c2
-rw-r--r--sys/gnu/ext2fs/ext2_ihash.c2
-rw-r--r--sys/gnu/ext2fs/inode.h2
-rw-r--r--sys/gnu/fs/ext2fs/inode.h2
-rw-r--r--sys/i386/i386/busdma_machdep.c10
-rw-r--r--sys/i386/include/pmap.h8
-rw-r--r--sys/i386/isa/bs/bsvar.h8
-rw-r--r--sys/i386/isa/ccbque.h2
-rw-r--r--sys/i386/isa/loran.c4
-rw-r--r--sys/i386/linux/linux_ioctl.c4
-rw-r--r--sys/isa/isa_common.h4
-rw-r--r--sys/kern/kern_conf.c4
-rw-r--r--sys/kern/kern_descrip.c4
-rw-r--r--sys/kern/kern_event.c6
-rw-r--r--sys/kern/kern_exit.c4
-rw-r--r--sys/kern/kern_fork.c4
-rw-r--r--sys/kern/kern_linker.c6
-rw-r--r--sys/kern/kern_module.c6
-rw-r--r--sys/kern/kern_proc.c4
-rw-r--r--sys/kern/kern_sig.c2
-rw-r--r--sys/kern/kern_subr.c4
-rw-r--r--sys/kern/kern_synch.c2
-rw-r--r--sys/kern/kern_sysctl.c2
-rw-r--r--sys/kern/subr_autoconf.c2
-rw-r--r--sys/kern/subr_bus.c2
-rw-r--r--sys/kern/subr_devstat.c4
-rw-r--r--sys/kern/subr_eventhandler.c2
-rw-r--r--sys/kern/sys_pipe.c2
-rw-r--r--sys/kern/tty.c2
-rw-r--r--sys/kern/uipc_socket.c4
-rw-r--r--sys/kern/uipc_syscalls.c2
-rw-r--r--sys/kern/vfs_aio.c28
-rw-r--r--sys/kern/vfs_bio.c2
-rw-r--r--sys/kern/vfs_cache.c10
-rw-r--r--sys/kern/vfs_export.c8
-rw-r--r--sys/kern/vfs_subr.c8
-rw-r--r--sys/kern/vfs_vnops.c2
-rw-r--r--sys/miscfs/fdesc/fdesc.h2
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c2
-rw-r--r--sys/miscfs/fifofs/fifo_vnops.c4
-rw-r--r--sys/miscfs/nullfs/null.h2
-rw-r--r--sys/miscfs/nullfs/null_subr.c2
-rw-r--r--sys/miscfs/umapfs/umap.h2
-rw-r--r--sys/miscfs/umapfs/umap_subr.c2
-rw-r--r--sys/miscfs/union/union.h2
-rw-r--r--sys/miscfs/union/union_subr.c2
-rw-r--r--sys/net/hostcache.h4
-rw-r--r--sys/net/if_ef.c4
-rw-r--r--sys/net/if_media.h4
-rw-r--r--sys/net/if_var.h16
-rw-r--r--sys/net/if_vlan_var.h4
-rw-r--r--sys/net/pfil.h4
-rw-r--r--sys/net/raw_cb.h4
-rw-r--r--sys/netgraph/netgraph.h10
-rw-r--r--sys/netgraph/ng_base.c6
-rw-r--r--sys/netgraph/ng_ppp.c4
-rw-r--r--sys/netgraph/ng_socket.c2
-rw-r--r--sys/netgraph/ng_socketvar.h2
-rw-r--r--sys/netinet/if_ether.c4
-rw-r--r--sys/netinet/in_pcb.h12
-rw-r--r--sys/netinet/in_var.h8
-rw-r--r--sys/netinet/ip_dummynet.c2
-rw-r--r--sys/netinet/ip_flow.c2
-rw-r--r--sys/netinet/ip_flow.h2
-rw-r--r--sys/netinet/ip_fw.c2
-rw-r--r--sys/netinet/ip_fw.h2
-rw-r--r--sys/netinet/tcp_var.h4
-rw-r--r--sys/netinet6/in6_prefix.h8
-rw-r--r--sys/netinet6/in6_var.h6
-rw-r--r--sys/netinet6/ip6_fw.c2
-rw-r--r--sys/netinet6/ip6_fw.h2
-rw-r--r--sys/netinet6/ip6_var.h2
-rw-r--r--sys/netinet6/ipsec.h2
-rw-r--r--sys/netinet6/nd6.h12
-rw-r--r--sys/netinet6/nd6_nbr.c4
-rw-r--r--sys/netkey/key.c8
-rw-r--r--sys/netkey/keydb.h10
-rw-r--r--sys/netnatm/natm.h4
-rw-r--r--sys/netncp/ncp_conn.c8
-rw-r--r--sys/netncp/ncp_conn.h8
-rw-r--r--sys/netncp/ncp_rcfile.h10
-rw-r--r--sys/nfs/nfs.h34
-rw-r--r--sys/nfs/nfs_common.c2
-rw-r--r--sys/nfs/nfs_node.c2
-rw-r--r--sys/nfs/nfs_srvcache.c4
-rw-r--r--sys/nfs/nfs_subs.c2
-rw-r--r--sys/nfs/nfsmount.h8
-rw-r--r--sys/nfs/nfsnode.h10
-rw-r--r--sys/nfs/nfsrvcache.h4
-rw-r--r--sys/nfs/nqnfs.h8
-rw-r--r--sys/nfsclient/nfs.h34
-rw-r--r--sys/nfsclient/nfs_node.c2
-rw-r--r--sys/nfsclient/nfs_subs.c2
-rw-r--r--sys/nfsclient/nfsargs.h34
-rw-r--r--sys/nfsclient/nfsmount.h8
-rw-r--r--sys/nfsclient/nfsnode.h10
-rw-r--r--sys/nfsclient/nfsstats.h34
-rw-r--r--sys/nfsserver/nfs.h34
-rw-r--r--sys/nfsserver/nfs_srvcache.c4
-rw-r--r--sys/nfsserver/nfs_srvsubs.c2
-rw-r--r--sys/nfsserver/nfsrvcache.h4
-rw-r--r--sys/nfsserver/nfsrvstats.h34
-rw-r--r--sys/ntfs/ntfs_ihash.c2
-rw-r--r--sys/ntfs/ntfs_inode.h8
-rw-r--r--sys/ntfs/ntfs_subr.h2
-rw-r--r--sys/nwfs/nwfs_node.c2
-rw-r--r--sys/nwfs/nwfs_node.h2
-rw-r--r--sys/pci/amd.h4
-rw-r--r--sys/pci/if_skreg.h6
-rw-r--r--sys/pci/if_tireg.h10
-rw-r--r--sys/pci/pci.c6
-rw-r--r--sys/svr4/svr4_socket.c4
-rw-r--r--sys/sys/aio.h4
-rw-r--r--sys/sys/bio.h4
-rw-r--r--sys/sys/buf.h20
-rw-r--r--sys/sys/bus.h4
-rw-r--r--sys/sys/bus_private.h12
-rw-r--r--sys/sys/callout.h8
-rw-r--r--sys/sys/conf.h4
-rw-r--r--sys/sys/devicestat.h2
-rw-r--r--sys/sys/event.h8
-rw-r--r--sys/sys/eventhandler.h6
-rw-r--r--sys/sys/eventvar.h2
-rw-r--r--sys/sys/file.h4
-rw-r--r--sys/sys/filedesc.h4
-rw-r--r--sys/sys/kernel.h2
-rw-r--r--sys/sys/linedisc.h4
-rw-r--r--sys/sys/linker.h16
-rw-r--r--sys/sys/lockf.h4
-rw-r--r--sys/sys/mount.h6
-rw-r--r--sys/sys/proc.h24
-rw-r--r--sys/sys/queue.h36
-rw-r--r--sys/sys/rman.h12
-rw-r--r--sys/sys/socketvar.h10
-rw-r--r--sys/sys/sysctl.h4
-rw-r--r--sys/sys/tty.h2
-rw-r--r--sys/sys/unpcb.h6
-rw-r--r--sys/sys/vnode.h16
-rw-r--r--sys/ufs/ffs/ffs_softdep.c6
-rw-r--r--sys/ufs/ffs/softdep.h44
-rw-r--r--sys/ufs/ufs/extattr.h4
-rw-r--r--sys/ufs/ufs/inode.h2
-rw-r--r--sys/ufs/ufs/quota.h4
-rw-r--r--sys/ufs/ufs/ufs_ihash.c2
-rw-r--r--sys/ufs/ufs/ufs_quota.c4
-rw-r--r--sys/vm/vm_object.h16
-rw-r--r--sys/vm/vm_page.h6
-rw-r--r--sys/vm/vm_pager.h2
-rw-r--r--tools/diag/dumpvfscache/dumpvfscache.c2
-rw-r--r--usr.bin/doscmd/callback.c4
-rw-r--r--usr.bin/fetch/http.c4
-rw-r--r--usr.bin/last/last.c4
-rw-r--r--usr.bin/more/tags.c4
-rw-r--r--usr.sbin/i4b/isdnd/isdnd.h2
-rw-r--r--usr.sbin/i4b/isdnd/monitor.c6
-rw-r--r--usr.sbin/lpr/chkprintcap/chkprintcap.c4
-rw-r--r--usr.sbin/lpr/common_source/lp.h12
-rw-r--r--usr.sbin/mlxcontrol/mlxcontrol.h12
-rw-r--r--usr.sbin/mtree/excludes.c4
-rw-r--r--usr.sbin/pw/pw.h4
-rw-r--r--usr.sbin/syslogd/syslogd.c4
-rw-r--r--usr.sbin/tzsetup/tzsetup.c4
-rw-r--r--usr.sbin/usbd/usbd.c4
-rw-r--r--usr.sbin/ypserv/yp_dblookup.c4
-rw-r--r--usr.sbin/ypserv/yp_dnslookup.c4
261 files changed, 880 insertions, 881 deletions
diff --git a/crypto/openssh/pam_ssh/pam_ssh.c b/crypto/openssh/pam_ssh/pam_ssh.c
index 92ab308..72c3a4e 100644
--- a/crypto/openssh/pam_ssh/pam_ssh.c
+++ b/crypto/openssh/pam_ssh/pam_ssh.c
@@ -86,11 +86,11 @@ ssh_cleanup(pam_handle_t *pamh, void *data, int error_status)
* environ at an array of one element equal to NULL).
*/
-SLIST_HEAD(env_head, struct env_entry);
+SLIST_HEAD(env_head, env_entry);
struct env_entry {
char *ee_env;
- SLIST_ENTRY(struct env_entry) ee_entries;
+ SLIST_ENTRY(env_entry) ee_entries;
};
typedef struct env {
diff --git a/gnu/usr.bin/binutils/gdb/freebsd-uthread.c b/gnu/usr.bin/binutils/gdb/freebsd-uthread.c
index 2dbe3d4..80e65fe 100644
--- a/gnu/usr.bin/binutils/gdb/freebsd-uthread.c
+++ b/gnu/usr.bin/binutils/gdb/freebsd-uthread.c
@@ -130,10 +130,10 @@ static CORE_ADDR cached_pthread_addr;
#define THREADID_TID(id) ((id) >> 17)
#define THREADID_PID(id) ((id) & ((1 << 17) - 1))
-LIST_HEAD(idmaplist, struct idmap);
+LIST_HEAD(idmaplist, idmap);
struct idmap {
- LIST_ENTRY(struct idmap) link;
+ LIST_ENTRY(idmap) link;
u_int64_t uniqueid;
int tid;
};
diff --git a/include/mpool.h b/include/mpool.h
index 8838fbd..0f08e8d 100644
--- a/include/mpool.h
+++ b/include/mpool.h
@@ -51,8 +51,8 @@
/* The BKT structures are the elements of the queues. */
typedef struct _bkt {
- CIRCLEQ_ENTRY(struct _bkt) hq; /* hash queue */
- CIRCLEQ_ENTRY(struct _bkt) q; /* lru queue */
+ CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
+ CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
void *page; /* page */
pgno_t pgno; /* page number */
@@ -62,9 +62,9 @@ typedef struct _bkt {
} BKT;
typedef struct MPOOL {
- CIRCLEQ_HEAD(_lqh, struct _bkt) lqh; /* lru queue head */
+ CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
/* hash queue array */
- CIRCLEQ_HEAD(_hqh, struct _bkt) hqh[HASHSIZE];
+ CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
pgno_t curcache; /* current number of cached pages */
pgno_t maxcache; /* max number of cached pages */
pgno_t npages; /* number of pages in the file */
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c
index 6b1a2f9..32fe460 100644
--- a/lib/libc/net/name6.c
+++ b/lib/libc/net/name6.c
@@ -990,7 +990,7 @@ _nis_ghbyaddr(const void *addr, int addrlen, int af, int *errp)
#endif
struct __res_type_list {
- SLIST_ENTRY(struct __res_type_list) rtl_entry;
+ SLIST_ENTRY(__res_type_list) rtl_entry;
int rtl_type;
};
diff --git a/lib/libc_r/uthread/pthread_private.h b/lib/libc_r/uthread/pthread_private.h
index f53db55..a86cfc6 100644
--- a/lib/libc_r/uthread/pthread_private.h
+++ b/lib/libc_r/uthread/pthread_private.h
@@ -187,14 +187,14 @@
* XXX It'd be nice if these were contained in uthread_priority_queue.[ch].
*/
typedef struct pq_list {
- TAILQ_HEAD(, struct pthread) pl_head; /* list of threads at this priority */
- TAILQ_ENTRY(struct pq_list) pl_link; /* link for queue of priority lists */
+ TAILQ_HEAD(, pthread) pl_head; /* list of threads at this priority */
+ TAILQ_ENTRY(pq_list) pl_link; /* link for queue of priority lists */
int pl_prio; /* the priority of this list */
int pl_queued; /* is this in the priority queue */
} pq_list_t;
typedef struct pq_queue {
- TAILQ_HEAD(, struct pq_list) pq_queue; /* queue of priority lists */
+ TAILQ_HEAD(, pq_list) pq_queue; /* queue of priority lists */
pq_list_t *pq_lists; /* array of all priority lists */
int pq_size; /* number of priority lists */
} pq_queue_t;
@@ -216,7 +216,7 @@ union pthread_mutex_data {
struct pthread_mutex {
enum pthread_mutextype m_type;
int m_protocol;
- TAILQ_HEAD(mutex_head, struct pthread) m_queue;
+ TAILQ_HEAD(mutex_head, pthread) m_queue;
struct pthread *m_owner;
union pthread_mutex_data m_data;
long m_flags;
@@ -239,7 +239,7 @@ struct pthread_mutex {
/*
* Link for list of all mutexes a thread currently owns.
*/
- TAILQ_ENTRY(struct pthread_mutex) m_qe;
+ TAILQ_ENTRY(pthread_mutex) m_qe;
/*
* Lock for accesses to this structure.
@@ -279,7 +279,7 @@ enum pthread_cond_type {
struct pthread_cond {
enum pthread_cond_type c_type;
- TAILQ_HEAD(cond_head, struct pthread) c_queue;
+ TAILQ_HEAD(cond_head, pthread) c_queue;
pthread_mutex_t c_mutex;
void *c_data;
long c_flags;
@@ -449,8 +449,8 @@ struct fd_table_entry {
* state of the lock on the file descriptor.
*/
spinlock_t lock;
- TAILQ_HEAD(, struct pthread) r_queue; /* Read queue. */
- TAILQ_HEAD(, struct pthread) w_queue; /* Write queue. */
+ TAILQ_HEAD(, pthread) r_queue; /* Read queue. */
+ TAILQ_HEAD(, pthread) w_queue; /* Write queue. */
struct pthread *r_owner; /* Ptr to thread owning read lock. */
struct pthread *w_owner; /* Ptr to thread owning write lock. */
char *r_fname; /* Ptr to read lock source file name */
@@ -505,10 +505,10 @@ struct pthread {
spinlock_t lock;
/* Queue entry for list of all threads: */
- TAILQ_ENTRY(struct pthread) tle;
+ TAILQ_ENTRY(pthread) tle;
/* Queue entry for list of dead threads: */
- TAILQ_ENTRY(struct pthread) dle;
+ TAILQ_ENTRY(pthread) dle;
/*
* Thread start routine, argument, stack pointer and thread
@@ -625,7 +625,7 @@ struct pthread {
int error;
/* Join queue head and link for waiting threads: */
- TAILQ_HEAD(join_head, struct pthread) join_queue;
+ TAILQ_HEAD(join_head, pthread) join_queue;
/*
* The current thread can belong to only one scheduling queue at
@@ -645,10 +645,10 @@ struct pthread {
*/
/* Priority queue entry for this thread: */
- TAILQ_ENTRY(struct pthread) pqe;
+ TAILQ_ENTRY(pthread) pqe;
/* Queue entry for this thread: */
- TAILQ_ENTRY(struct pthread) qe;
+ TAILQ_ENTRY(pthread) qe;
/* Wait data. */
union pthread_wait_data data;
@@ -724,7 +724,7 @@ struct pthread {
/*
* Queue of currently owned mutexes.
*/
- TAILQ_HEAD(, struct pthread_mutex) mutexq;
+ TAILQ_HEAD(, pthread_mutex) mutexq;
void *ret;
const void **specific_data;
@@ -738,7 +738,7 @@ struct pthread {
/* Spare thread stack. */
struct stack {
- SLIST_ENTRY(struct stack) qe; /* Queue entry for this stack. */
+ SLIST_ENTRY(stack) qe; /* Queue entry for this stack. */
};
/*
@@ -776,7 +776,7 @@ SCLASS struct pthread * volatile _thread_single
#endif
/* List of all threads: */
-SCLASS TAILQ_HEAD(, struct pthread) _thread_list
+SCLASS TAILQ_HEAD(, pthread) _thread_list
#ifdef GLOBAL_PTHREAD_PRIVATE
= TAILQ_HEAD_INITIALIZER(_thread_list);
#else
@@ -818,7 +818,7 @@ SCLASS struct timeval kern_inc_prio_time
#endif
/* Dead threads: */
-SCLASS TAILQ_HEAD(, struct pthread) _dead_list
+SCLASS TAILQ_HEAD(, pthread) _dead_list
#ifdef GLOBAL_PTHREAD_PRIVATE
= TAILQ_HEAD_INITIALIZER(_dead_list);
#else
@@ -927,12 +927,12 @@ SCLASS sigset_t _process_sigpending;
* Scheduling queues:
*/
SCLASS pq_queue_t _readyq;
-SCLASS TAILQ_HEAD(, struct pthread) _waitingq;
+SCLASS TAILQ_HEAD(, pthread) _waitingq;
/*
* Work queue:
*/
-SCLASS TAILQ_HEAD(, struct pthread) _workq;
+SCLASS TAILQ_HEAD(, pthread) _workq;
/* Tracks the number of threads blocked while waiting for a spinlock. */
SCLASS volatile int _spinblock_count
@@ -960,7 +960,7 @@ SCLASS pthread_switch_routine_t _sched_switch_hook
* thread creation time. Spare stacks are used in LIFO order to increase cache
* locality.
*/
-SCLASS SLIST_HEAD(, struct stack) _stackq;
+SCLASS SLIST_HEAD(, stack) _stackq;
/*
* Base address of next unallocated default-size {stack, red zone}. Stacks are
diff --git a/lib/libc_r/uthread/uthread_file.c b/lib/libc_r/uthread/uthread_file.c
index 8700897..88b6a8f 100644
--- a/lib/libc_r/uthread/uthread_file.c
+++ b/lib/libc_r/uthread/uthread_file.c
@@ -57,8 +57,8 @@
* reassigned to a different file by setting fp.
*/
struct file_lock {
- LIST_ENTRY(struct file_lock) entry; /* Entry if file list. */
- TAILQ_HEAD(lock_head, struct pthread)
+ LIST_ENTRY(file_lock) entry; /* Entry if file list. */
+ TAILQ_HEAD(lock_head, pthread)
l_head; /* Head of queue for threads */
/* waiting on this lock. */
FILE *fp; /* The target file. */
@@ -90,7 +90,7 @@ struct file_lock {
* collisions that require a malloc and an element added to the list.
*/
struct static_file_lock {
- LIST_HEAD(file_list_head, struct file_lock) head;
+ LIST_HEAD(file_list_head, file_lock) head;
struct file_lock fl;
} flh[NUM_HEADS];
diff --git a/lib/libkse/thread/thr_private.h b/lib/libkse/thread/thr_private.h
index f53db55..a86cfc6 100644
--- a/lib/libkse/thread/thr_private.h
+++ b/lib/libkse/thread/thr_private.h
@@ -187,14 +187,14 @@
* XXX It'd be nice if these were contained in uthread_priority_queue.[ch].
*/
typedef struct pq_list {
- TAILQ_HEAD(, struct pthread) pl_head; /* list of threads at this priority */
- TAILQ_ENTRY(struct pq_list) pl_link; /* link for queue of priority lists */
+ TAILQ_HEAD(, pthread) pl_head; /* list of threads at this priority */
+ TAILQ_ENTRY(pq_list) pl_link; /* link for queue of priority lists */
int pl_prio; /* the priority of this list */
int pl_queued; /* is this in the priority queue */
} pq_list_t;
typedef struct pq_queue {
- TAILQ_HEAD(, struct pq_list) pq_queue; /* queue of priority lists */
+ TAILQ_HEAD(, pq_list) pq_queue; /* queue of priority lists */
pq_list_t *pq_lists; /* array of all priority lists */
int pq_size; /* number of priority lists */
} pq_queue_t;
@@ -216,7 +216,7 @@ union pthread_mutex_data {
struct pthread_mutex {
enum pthread_mutextype m_type;
int m_protocol;
- TAILQ_HEAD(mutex_head, struct pthread) m_queue;
+ TAILQ_HEAD(mutex_head, pthread) m_queue;
struct pthread *m_owner;
union pthread_mutex_data m_data;
long m_flags;
@@ -239,7 +239,7 @@ struct pthread_mutex {
/*
* Link for list of all mutexes a thread currently owns.
*/
- TAILQ_ENTRY(struct pthread_mutex) m_qe;
+ TAILQ_ENTRY(pthread_mutex) m_qe;
/*
* Lock for accesses to this structure.
@@ -279,7 +279,7 @@ enum pthread_cond_type {
struct pthread_cond {
enum pthread_cond_type c_type;
- TAILQ_HEAD(cond_head, struct pthread) c_queue;
+ TAILQ_HEAD(cond_head, pthread) c_queue;
pthread_mutex_t c_mutex;
void *c_data;
long c_flags;
@@ -449,8 +449,8 @@ struct fd_table_entry {
* state of the lock on the file descriptor.
*/
spinlock_t lock;
- TAILQ_HEAD(, struct pthread) r_queue; /* Read queue. */
- TAILQ_HEAD(, struct pthread) w_queue; /* Write queue. */
+ TAILQ_HEAD(, pthread) r_queue; /* Read queue. */
+ TAILQ_HEAD(, pthread) w_queue; /* Write queue. */
struct pthread *r_owner; /* Ptr to thread owning read lock. */
struct pthread *w_owner; /* Ptr to thread owning write lock. */
char *r_fname; /* Ptr to read lock source file name */
@@ -505,10 +505,10 @@ struct pthread {
spinlock_t lock;
/* Queue entry for list of all threads: */
- TAILQ_ENTRY(struct pthread) tle;
+ TAILQ_ENTRY(pthread) tle;
/* Queue entry for list of dead threads: */
- TAILQ_ENTRY(struct pthread) dle;
+ TAILQ_ENTRY(pthread) dle;
/*
* Thread start routine, argument, stack pointer and thread
@@ -625,7 +625,7 @@ struct pthread {
int error;
/* Join queue head and link for waiting threads: */
- TAILQ_HEAD(join_head, struct pthread) join_queue;
+ TAILQ_HEAD(join_head, pthread) join_queue;
/*
* The current thread can belong to only one scheduling queue at
@@ -645,10 +645,10 @@ struct pthread {
*/
/* Priority queue entry for this thread: */
- TAILQ_ENTRY(struct pthread) pqe;
+ TAILQ_ENTRY(pthread) pqe;
/* Queue entry for this thread: */
- TAILQ_ENTRY(struct pthread) qe;
+ TAILQ_ENTRY(pthread) qe;
/* Wait data. */
union pthread_wait_data data;
@@ -724,7 +724,7 @@ struct pthread {
/*
* Queue of currently owned mutexes.
*/
- TAILQ_HEAD(, struct pthread_mutex) mutexq;
+ TAILQ_HEAD(, pthread_mutex) mutexq;
void *ret;
const void **specific_data;
@@ -738,7 +738,7 @@ struct pthread {
/* Spare thread stack. */
struct stack {
- SLIST_ENTRY(struct stack) qe; /* Queue entry for this stack. */
+ SLIST_ENTRY(stack) qe; /* Queue entry for this stack. */
};
/*
@@ -776,7 +776,7 @@ SCLASS struct pthread * volatile _thread_single
#endif
/* List of all threads: */
-SCLASS TAILQ_HEAD(, struct pthread) _thread_list
+SCLASS TAILQ_HEAD(, pthread) _thread_list
#ifdef GLOBAL_PTHREAD_PRIVATE
= TAILQ_HEAD_INITIALIZER(_thread_list);
#else
@@ -818,7 +818,7 @@ SCLASS struct timeval kern_inc_prio_time
#endif
/* Dead threads: */
-SCLASS TAILQ_HEAD(, struct pthread) _dead_list
+SCLASS TAILQ_HEAD(, pthread) _dead_list
#ifdef GLOBAL_PTHREAD_PRIVATE
= TAILQ_HEAD_INITIALIZER(_dead_list);
#else
@@ -927,12 +927,12 @@ SCLASS sigset_t _process_sigpending;
* Scheduling queues:
*/
SCLASS pq_queue_t _readyq;
-SCLASS TAILQ_HEAD(, struct pthread) _waitingq;
+SCLASS TAILQ_HEAD(, pthread) _waitingq;
/*
* Work queue:
*/
-SCLASS TAILQ_HEAD(, struct pthread) _workq;
+SCLASS TAILQ_HEAD(, pthread) _workq;
/* Tracks the number of threads blocked while waiting for a spinlock. */
SCLASS volatile int _spinblock_count
@@ -960,7 +960,7 @@ SCLASS pthread_switch_routine_t _sched_switch_hook
* thread creation time. Spare stacks are used in LIFO order to increase cache
* locality.
*/
-SCLASS SLIST_HEAD(, struct stack) _stackq;
+SCLASS SLIST_HEAD(, stack) _stackq;
/*
* Base address of next unallocated default-size {stack, red zone}. Stacks are
diff --git a/lib/libncp/ncpl_rcfile.c b/lib/libncp/ncpl_rcfile.c
index f218655..7a69071 100644
--- a/lib/libncp/ncpl_rcfile.c
+++ b/lib/libncp/ncpl_rcfile.c
@@ -49,7 +49,7 @@
struct rcfile *ncp_rc = NULL;
-SLIST_HEAD(rcfile_head, struct rcfile);
+SLIST_HEAD(rcfile_head, rcfile);
static struct rcfile_head pf_head = {NULL};
int rc_merge(char *filename,struct rcfile **rcfile);
@@ -123,7 +123,7 @@ rc_close(struct rcfile *rcp) {
rc_sect_free(n);
}
free(rcp->rf_name);
- SLIST_REMOVE(&pf_head, rcp, struct rcfile, rf_next);
+ SLIST_REMOVE(&pf_head, rcp, rcfile, rf_next);
free(rcp);
return 0;
}
@@ -206,7 +206,7 @@ rc_sect_addkey(struct rcsection *rsp, char *name, char *value) {
void
rc_sect_delkey(struct rcsection *rsp, struct rckey *p) {
- SLIST_REMOVE(&rsp->rs_keys,p,struct rckey,rk_next);
+ SLIST_REMOVE(&rsp->rs_keys,p,rckey,rk_next);
rc_key_free(p);
return;
}
diff --git a/lib/libpam/modules/pam_ssh/pam_ssh.c b/lib/libpam/modules/pam_ssh/pam_ssh.c
index 92ab308..72c3a4e 100644
--- a/lib/libpam/modules/pam_ssh/pam_ssh.c
+++ b/lib/libpam/modules/pam_ssh/pam_ssh.c
@@ -86,11 +86,11 @@ ssh_cleanup(pam_handle_t *pamh, void *data, int error_status)
* environ at an array of one element equal to NULL).
*/
-SLIST_HEAD(env_head, struct env_entry);
+SLIST_HEAD(env_head, env_entry);
struct env_entry {
char *ee_env;
- SLIST_ENTRY(struct env_entry) ee_entries;
+ SLIST_ENTRY(env_entry) ee_entries;
};
typedef struct env {
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h
index f53db55..a86cfc6 100644
--- a/lib/libpthread/thread/thr_private.h
+++ b/lib/libpthread/thread/thr_private.h
@@ -187,14 +187,14 @@
* XXX It'd be nice if these were contained in uthread_priority_queue.[ch].
*/
typedef struct pq_list {
- TAILQ_HEAD(, struct pthread) pl_head; /* list of threads at this priority */
- TAILQ_ENTRY(struct pq_list) pl_link; /* link for queue of priority lists */
+ TAILQ_HEAD(, pthread) pl_head; /* list of threads at this priority */
+ TAILQ_ENTRY(pq_list) pl_link; /* link for queue of priority lists */
int pl_prio; /* the priority of this list */
int pl_queued; /* is this in the priority queue */
} pq_list_t;
typedef struct pq_queue {
- TAILQ_HEAD(, struct pq_list) pq_queue; /* queue of priority lists */
+ TAILQ_HEAD(, pq_list) pq_queue; /* queue of priority lists */
pq_list_t *pq_lists; /* array of all priority lists */
int pq_size; /* number of priority lists */
} pq_queue_t;
@@ -216,7 +216,7 @@ union pthread_mutex_data {
struct pthread_mutex {
enum pthread_mutextype m_type;
int m_protocol;
- TAILQ_HEAD(mutex_head, struct pthread) m_queue;
+ TAILQ_HEAD(mutex_head, pthread) m_queue;
struct pthread *m_owner;
union pthread_mutex_data m_data;
long m_flags;
@@ -239,7 +239,7 @@ struct pthread_mutex {
/*
* Link for list of all mutexes a thread currently owns.
*/
- TAILQ_ENTRY(struct pthread_mutex) m_qe;
+ TAILQ_ENTRY(pthread_mutex) m_qe;
/*
* Lock for accesses to this structure.
@@ -279,7 +279,7 @@ enum pthread_cond_type {
struct pthread_cond {
enum pthread_cond_type c_type;
- TAILQ_HEAD(cond_head, struct pthread) c_queue;
+ TAILQ_HEAD(cond_head, pthread) c_queue;
pthread_mutex_t c_mutex;
void *c_data;
long c_flags;
@@ -449,8 +449,8 @@ struct fd_table_entry {
* state of the lock on the file descriptor.
*/
spinlock_t lock;
- TAILQ_HEAD(, struct pthread) r_queue; /* Read queue. */
- TAILQ_HEAD(, struct pthread) w_queue; /* Write queue. */
+ TAILQ_HEAD(, pthread) r_queue; /* Read queue. */
+ TAILQ_HEAD(, pthread) w_queue; /* Write queue. */
struct pthread *r_owner; /* Ptr to thread owning read lock. */
struct pthread *w_owner; /* Ptr to thread owning write lock. */
char *r_fname; /* Ptr to read lock source file name */
@@ -505,10 +505,10 @@ struct pthread {
spinlock_t lock;
/* Queue entry for list of all threads: */
- TAILQ_ENTRY(struct pthread) tle;
+ TAILQ_ENTRY(pthread) tle;
/* Queue entry for list of dead threads: */
- TAILQ_ENTRY(struct pthread) dle;
+ TAILQ_ENTRY(pthread) dle;
/*
* Thread start routine, argument, stack pointer and thread
@@ -625,7 +625,7 @@ struct pthread {
int error;
/* Join queue head and link for waiting threads: */
- TAILQ_HEAD(join_head, struct pthread) join_queue;
+ TAILQ_HEAD(join_head, pthread) join_queue;
/*
* The current thread can belong to only one scheduling queue at
@@ -645,10 +645,10 @@ struct pthread {
*/
/* Priority queue entry for this thread: */
- TAILQ_ENTRY(struct pthread) pqe;
+ TAILQ_ENTRY(pthread) pqe;
/* Queue entry for this thread: */
- TAILQ_ENTRY(struct pthread) qe;
+ TAILQ_ENTRY(pthread) qe;
/* Wait data. */
union pthread_wait_data data;
@@ -724,7 +724,7 @@ struct pthread {
/*
* Queue of currently owned mutexes.
*/
- TAILQ_HEAD(, struct pthread_mutex) mutexq;
+ TAILQ_HEAD(, pthread_mutex) mutexq;
void *ret;
const void **specific_data;
@@ -738,7 +738,7 @@ struct pthread {
/* Spare thread stack. */
struct stack {
- SLIST_ENTRY(struct stack) qe; /* Queue entry for this stack. */
+ SLIST_ENTRY(stack) qe; /* Queue entry for this stack. */
};
/*
@@ -776,7 +776,7 @@ SCLASS struct pthread * volatile _thread_single
#endif
/* List of all threads: */
-SCLASS TAILQ_HEAD(, struct pthread) _thread_list
+SCLASS TAILQ_HEAD(, pthread) _thread_list
#ifdef GLOBAL_PTHREAD_PRIVATE
= TAILQ_HEAD_INITIALIZER(_thread_list);
#else
@@ -818,7 +818,7 @@ SCLASS struct timeval kern_inc_prio_time
#endif
/* Dead threads: */
-SCLASS TAILQ_HEAD(, struct pthread) _dead_list
+SCLASS TAILQ_HEAD(, pthread) _dead_list
#ifdef GLOBAL_PTHREAD_PRIVATE
= TAILQ_HEAD_INITIALIZER(_dead_list);
#else
@@ -927,12 +927,12 @@ SCLASS sigset_t _process_sigpending;
* Scheduling queues:
*/
SCLASS pq_queue_t _readyq;
-SCLASS TAILQ_HEAD(, struct pthread) _waitingq;
+SCLASS TAILQ_HEAD(, pthread) _waitingq;
/*
* Work queue:
*/
-SCLASS TAILQ_HEAD(, struct pthread) _workq;
+SCLASS TAILQ_HEAD(, pthread) _workq;
/* Tracks the number of threads blocked while waiting for a spinlock. */
SCLASS volatile int _spinblock_count
@@ -960,7 +960,7 @@ SCLASS pthread_switch_routine_t _sched_switch_hook
* thread creation time. Spare stacks are used in LIFO order to increase cache
* locality.
*/
-SCLASS SLIST_HEAD(, struct stack) _stackq;
+SCLASS SLIST_HEAD(, stack) _stackq;
/*
* Base address of next unallocated default-size {stack, red zone}. Stacks are
diff --git a/lib/libstand/if_ether.h b/lib/libstand/if_ether.h
index ada2815..392ef7a 100644
--- a/lib/libstand/if_ether.h
+++ b/lib/libstand/if_ether.h
@@ -122,12 +122,12 @@ struct arpcom {
struct ifnet ac_if; /* network-visible interface */
u_int8_t ac_enaddr[ETHER_ADDR_LEN]; /* ethernet hardware address */
char ac__pad[2]; /* be nice to m68k ports */
- LIST_HEAD(, struct ether_multi) ac_multiaddrs; /* list of ether multicast addrs */
+ LIST_HEAD(, ether_multi) ac_multiaddrs; /* list of ether multicast addrs */
int ac_multicnt; /* length of ac_multiaddrs list */
};
struct llinfo_arp {
- LIST_ENTRY(struct llinfo_arp) la_list;
+ LIST_ENTRY(llinfo_arp) la_list;
struct rtentry *la_rt;
struct mbuf *la_hold; /* last packet until resolved/timeout */
long la_asked; /* last time we QUERIED for this addr */
@@ -181,7 +181,7 @@ struct ether_multi {
u_int8_t enm_addrhi[ETHER_ADDR_LEN]; /* high or only address of range */
struct arpcom *enm_ac; /* back pointer to arpcom */
u_int enm_refcount; /* no. claims to this addr/range */
- LIST_ENTRY(struct ether_multi) enm_list;
+ LIST_ENTRY(ether_multi) enm_list;
};
/*
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 59f23b6..146b9b2 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -1183,7 +1183,7 @@ objlist_remove(Objlist *list, Obj_Entry *obj)
Objlist_Entry *elm;
if ((elm = objlist_find(list, obj)) != NULL) {
- STAILQ_REMOVE(list, elm, struct Struct_Objlist_Entry, link);
+ STAILQ_REMOVE(list, elm, Struct_Objlist_Entry, link);
free(elm);
}
}
diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h
index 0830459..6d1ebbf 100644
--- a/libexec/rtld-elf/rtld.h
+++ b/libexec/rtld-elf/rtld.h
@@ -54,21 +54,21 @@ struct Struct_Obj_Entry;
/* Lists of shared objects */
typedef struct Struct_Objlist_Entry {
- STAILQ_ENTRY(struct Struct_Objlist_Entry) link;
+ STAILQ_ENTRY(Struct_Objlist_Entry) link;
struct Struct_Obj_Entry *obj;
} Objlist_Entry;
-typedef STAILQ_HEAD(Struct_Objlist, struct Struct_Objlist_Entry) Objlist;
+typedef STAILQ_HEAD(Struct_Objlist, Struct_Objlist_Entry) Objlist;
/* Lists of init or fini functions */
typedef void (*InitFunc)(void);
typedef struct Struct_Funclist_Entry {
- STAILQ_ENTRY(struct Struct_Funclist_Entry) link;
+ STAILQ_ENTRY(Struct_Funclist_Entry) link;
InitFunc func;
} Funclist_Entry;
-typedef STAILQ_HEAD(Struct_Funclist, struct Struct_Funclist_Entry) Funclist;
+typedef STAILQ_HEAD(Struct_Funclist, Struct_Funclist_Entry) Funclist;
/* Lists of shared object dependencies */
typedef struct Struct_Needed_Entry {
diff --git a/sys/alpha/alpha/busdma_machdep.c b/sys/alpha/alpha/busdma_machdep.c
index f480322..d01433b 100644
--- a/sys/alpha/alpha/busdma_machdep.c
+++ b/sys/alpha/alpha/busdma_machdep.c
@@ -62,12 +62,12 @@ struct bounce_page {
bus_addr_t busaddr; /* Physical address */
vm_offset_t datavaddr; /* kva of client data */
bus_size_t datacount; /* client data count */
- STAILQ_ENTRY(struct bounce_page) links;
+ STAILQ_ENTRY(bounce_page) links;
};
int busdma_swi_pending;
-static STAILQ_HEAD(bp_list, struct bounce_page) bounce_page_list;
+static STAILQ_HEAD(bp_list, bounce_page) bounce_page_list;
static int free_bpages;
static int reserved_bpages;
static int active_bpages;
@@ -85,11 +85,11 @@ struct bus_dmamap {
bus_dmamap_callback_t *callback;
void *callback_arg;
void *sgmaphandle; /* handle into sgmap */
- STAILQ_ENTRY(struct bus_dmamap) links;
+ STAILQ_ENTRY(bus_dmamap) links;
};
-static STAILQ_HEAD(, struct bus_dmamap) bounce_map_waitinglist;
-static STAILQ_HEAD(, struct bus_dmamap) bounce_map_callbacklist;
+static STAILQ_HEAD(, bus_dmamap) bounce_map_waitinglist;
+static STAILQ_HEAD(, bus_dmamap) bounce_map_callbacklist;
static struct bus_dmamap nobounce_dmamap;
static int alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages);
diff --git a/sys/alpha/alpha/interrupt.c b/sys/alpha/alpha/interrupt.c
index 120d3be..db6f542 100644
--- a/sys/alpha/alpha/interrupt.c
+++ b/sys/alpha/alpha/interrupt.c
@@ -293,10 +293,10 @@ badaddr_read(addr, size, rptr)
#define HASHVEC(vector) ((vector) % 31)
-LIST_HEAD(alpha_intr_list, struct alpha_intr);
+LIST_HEAD(alpha_intr_list, alpha_intr);
struct alpha_intr {
- LIST_ENTRY(struct alpha_intr) list; /* chain handlers in this hash bucket */
+ LIST_ENTRY(alpha_intr) list; /* chain handlers in this hash bucket */
int vector; /* vector to match */
driver_intr_t *intr; /* handler function */
void *arg; /* argument to handler */
diff --git a/sys/alpha/include/pmap.h b/sys/alpha/include/pmap.h
index 4b65301..134c9a2 100644
--- a/sys/alpha/include/pmap.h
+++ b/sys/alpha/include/pmap.h
@@ -162,7 +162,7 @@ struct pv_entry;
struct md_page {
int pv_list_count;
int pv_flags;
- TAILQ_HEAD(, struct pv_entry) pv_list;
+ TAILQ_HEAD(,pv_entry) pv_list;
};
#define PV_TABLE_MOD 0x01 /* modified */
@@ -171,7 +171,7 @@ struct md_page {
struct pmap {
pt_entry_t *pm_lev1; /* KVA of lev0map */
vm_object_t pm_pteobj; /* Container for pte's */
- TAILQ_HEAD(, struct pv_entry) pm_pvlist;/* list of mappings in pmap */
+ TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */
int pm_count; /* reference count */
int pm_flags; /* pmap flags */
int pm_active; /* active flag */
@@ -199,8 +199,8 @@ extern pmap_t kernel_pmap;
typedef struct pv_entry {
pmap_t pv_pmap; /* pmap where mapping lies */
vm_offset_t pv_va; /* virtual address for mapping */
- TAILQ_ENTRY(struct pv_entry) pv_list;
- TAILQ_ENTRY(struct pv_entry) pv_plist;
+ TAILQ_ENTRY(pv_entry) pv_list;
+ TAILQ_ENTRY(pv_entry) pv_plist;
vm_page_t pv_ptem; /* VM page for pte */
} *pv_entry_t;
diff --git a/sys/alpha/tc/espvar.h b/sys/alpha/tc/espvar.h
index edca635..1efbbc0 100644
--- a/sys/alpha/tc/espvar.h
+++ b/sys/alpha/tc/espvar.h
@@ -49,7 +49,7 @@
* occasionally xs->retries.
*/
struct ecb {
- TAILQ_ENTRY(struct ecb) chain;
+ TAILQ_ENTRY(ecb) chain;
struct scsi_xfer *xs; /* SCSI xfer ctrl block from above */
int flags; /* Status */
#define ECB_QNONE 0
@@ -173,7 +173,7 @@ struct esp_softc {
u_char sc_espfflags;
/* Lists of command blocks */
- TAILQ_HEAD(ecb_list, struct ecb) free_list,
+ TAILQ_HEAD(ecb_list, ecb) free_list,
ready_list,
nexus_list;
diff --git a/sys/amd64/amd64/busdma_machdep.c b/sys/amd64/amd64/busdma_machdep.c
index 81476f6..0868b7c 100644
--- a/sys/amd64/amd64/busdma_machdep.c
+++ b/sys/amd64/amd64/busdma_machdep.c
@@ -61,12 +61,12 @@ struct bounce_page {
bus_addr_t busaddr; /* Physical address */
vm_offset_t datavaddr; /* kva of client data */
bus_size_t datacount; /* client data count */
- STAILQ_ENTRY(struct bounce_page) links;
+ STAILQ_ENTRY(bounce_page) links;
};
int busdma_swi_pending;
-static STAILQ_HEAD(bp_list, struct bounce_page) bounce_page_list;
+static STAILQ_HEAD(bp_list, bounce_page) bounce_page_list;
static int free_bpages;
static int reserved_bpages;
static int active_bpages;
@@ -82,11 +82,11 @@ struct bus_dmamap {
bus_size_t buflen; /* unmapped buffer length */
bus_dmamap_callback_t *callback;
void *callback_arg;
- STAILQ_ENTRY(struct bus_dmamap) links;
+ STAILQ_ENTRY(bus_dmamap) links;
};
-static STAILQ_HEAD(, struct bus_dmamap) bounce_map_waitinglist;
-static STAILQ_HEAD(, struct bus_dmamap) bounce_map_callbacklist;
+static STAILQ_HEAD(, bus_dmamap) bounce_map_waitinglist;
+static STAILQ_HEAD(, bus_dmamap) bounce_map_callbacklist;
static struct bus_dmamap nobounce_dmamap;
static int alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages);
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 054db2b..813f2ae 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -191,13 +191,13 @@ struct pv_entry;
struct md_page {
int pv_list_count;
- TAILQ_HEAD(,struct pv_entry) pv_list;
+ TAILQ_HEAD(,pv_entry) pv_list;
};
struct pmap {
pd_entry_t *pm_pdir; /* KVA of page directory */
vm_object_t pm_pteobj; /* Container for pte's */
- TAILQ_HEAD(,struct pv_entry) pm_pvlist;/* list of mappings in pmap */
+ TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */
int pm_count; /* reference count */
int pm_active; /* active on cpus */
struct pmap_statistics pm_stats; /* pmap statistics */
@@ -219,8 +219,8 @@ extern pmap_t kernel_pmap;
typedef struct pv_entry {
pmap_t pv_pmap; /* pmap where mapping lies */
vm_offset_t pv_va; /* virtual address for mapping */
- TAILQ_ENTRY(struct pv_entry) pv_list;
- TAILQ_ENTRY(struct pv_entry) pv_plist;
+ TAILQ_ENTRY(pv_entry) pv_list;
+ TAILQ_ENTRY(pv_entry) pv_plist;
vm_page_t pv_ptem; /* VM page for pte */
} *pv_entry_t;
diff --git a/sys/boot/common/bootstrap.h b/sys/boot/common/bootstrap.h
index 9bb6f5d..4c38154 100644
--- a/sys/boot/common/bootstrap.h
+++ b/sys/boot/common/bootstrap.h
@@ -122,7 +122,7 @@ struct pnphandler
struct pnpident
{
char *id_ident; /* ASCII identifier, actual format varies with bus/handler */
- STAILQ_ENTRY(struct pnpident) id_link;
+ STAILQ_ENTRY(pnpident) id_link;
};
struct pnpinfo
@@ -133,8 +133,8 @@ struct pnpinfo
int pi_argc; /* module arguments */
char **pi_argv;
struct pnphandler *pi_handler; /* handler which detected this device */
- STAILQ_HEAD(, struct pnpident) pi_ident; /* list of identifiers */
- STAILQ_ENTRY(struct pnpinfo) pi_link;
+ STAILQ_HEAD(,pnpident) pi_ident; /* list of identifiers */
+ STAILQ_ENTRY(pnpinfo) pi_link;
};
extern struct pnphandler *pnphandlers[]; /* provided by MD code */
diff --git a/sys/boot/common/pnp.c b/sys/boot/common/pnp.c
index b425bc2..bb3695b 100644
--- a/sys/boot/common/pnp.c
+++ b/sys/boot/common/pnp.c
@@ -15,7 +15,7 @@
#include <string.h>
#include <bootstrap.h>
-STAILQ_HEAD(, struct pnpinfo) pnp_devices;
+STAILQ_HEAD(,pnpinfo) pnp_devices;
static int pnp_devices_initted = 0;
static void pnp_discard(void);
diff --git a/sys/cam/cam_ccb.h b/sys/cam/cam_ccb.h
index e02c72f..3224522 100644
--- a/sys/cam/cam_ccb.h
+++ b/sys/cam/cam_ccb.h
@@ -202,10 +202,10 @@ typedef enum {
#define XPT_FC_IS_QUEUED(ccb) \
(((ccb)->ccb_h.func_code & XPT_FC_QUEUED) != 0)
typedef union {
- LIST_ENTRY(struct ccb_hdr) le;
- SLIST_ENTRY(struct ccb_hdr) sle;
- TAILQ_ENTRY(struct ccb_hdr) tqe;
- STAILQ_ENTRY(struct ccb_hdr) stqe;
+ LIST_ENTRY(ccb_hdr) le;
+ SLIST_ENTRY(ccb_hdr) sle;
+ TAILQ_ENTRY(ccb_hdr) tqe;
+ STAILQ_ENTRY(ccb_hdr) stqe;
} camq_entry;
typedef union {
diff --git a/sys/cam/cam_periph.h b/sys/cam/cam_periph.h
index e2bc2e7..54c549c 100644
--- a/sys/cam/cam_periph.h
+++ b/sys/cam/cam_periph.h
@@ -49,7 +49,7 @@ typedef periph_init_t *periph_init_func_t;
struct periph_driver {
periph_init_func_t init;
char *driver_name;
- TAILQ_HEAD(, struct cam_periph) units;
+ TAILQ_HEAD(,cam_periph) units;
u_int generation;
};
@@ -89,9 +89,9 @@ struct cam_periph {
#define CAM_PERIPH_RECOVERY_INPROG 0x20
u_int32_t immediate_priority;
u_int32_t refcount;
- SLIST_HEAD(, struct ccb_hdr) ccb_list; /* For "immediate" requests */
- SLIST_ENTRY(struct cam_periph) periph_links;
- TAILQ_ENTRY(struct cam_periph) unit_links;
+ SLIST_HEAD(, ccb_hdr) ccb_list; /* For "immediate" requests */
+ SLIST_ENTRY(cam_periph) periph_links;
+ TAILQ_ENTRY(cam_periph) unit_links;
ac_callback_t *deferred_callback;
ac_code deferred_ac;
};
diff --git a/sys/cam/cam_queue.h b/sys/cam/cam_queue.h
index 52fb9b3..3d0a29c 100644
--- a/sys/cam/cam_queue.h
+++ b/sys/cam/cam_queue.h
@@ -50,9 +50,9 @@ struct camq {
u_int32_t qfrozen_cnt;
};
-TAILQ_HEAD(ccb_hdr_tailq, struct ccb_hdr);
-LIST_HEAD(ccb_hdr_list, struct ccb_hdr);
-SLIST_HEAD(ccb_hdr_slist, struct ccb_hdr);
+TAILQ_HEAD(ccb_hdr_tailq, ccb_hdr);
+LIST_HEAD(ccb_hdr_list, ccb_hdr);
+SLIST_HEAD(ccb_hdr_slist, ccb_hdr);
struct cam_ccbq {
struct camq queue;
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 5f24a9d..53ff288 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -69,16 +69,16 @@
* SIMs and peripherals to the async callback lists.
*/
struct async_node {
- SLIST_ENTRY(struct async_node) links;
+ SLIST_ENTRY(async_node) links;
u_int32_t event_enable; /* Async Event enables */
void (*callback)(void *arg, u_int32_t code,
struct cam_path *path, void *args);
void *callback_arg;
};
-SLIST_HEAD(async_list, struct async_node);
-SLIST_HEAD(periph_list, struct cam_periph);
-static STAILQ_HEAD(highpowerlist, struct ccb_hdr) highpowerq;
+SLIST_HEAD(async_list, async_node);
+SLIST_HEAD(periph_list, cam_periph);
+static STAILQ_HEAD(highpowerlist, ccb_hdr) highpowerq;
/*
* This is the maximum number of high powered commands (e.g. start unit)
@@ -107,7 +107,7 @@ struct cam_ed_qinfo {
* cam_ed structure for each device on the bus.
*/
struct cam_ed {
- TAILQ_ENTRY(struct cam_ed) links;
+ TAILQ_ENTRY(cam_ed) links;
struct cam_ed_qinfo alloc_ccb_entry;
struct cam_ed_qinfo send_ccb_entry;
struct cam_et *target;
@@ -155,8 +155,8 @@ struct cam_ed {
* of retries, or a bus rescan finds the device missing.
*/
struct cam_et {
- TAILQ_HEAD(, struct cam_ed) ed_entries;
- TAILQ_ENTRY(struct cam_et) links;
+ TAILQ_HEAD(, cam_ed) ed_entries;
+ TAILQ_ENTRY(cam_et) links;
struct cam_eb *bus;
target_id_t target_id;
u_int32_t refcount;
@@ -170,8 +170,8 @@ struct cam_et {
* xpt_bus_deregister.
*/
struct cam_eb {
- TAILQ_HEAD(, struct cam_et) et_entries;
- TAILQ_ENTRY(struct cam_eb) links;
+ TAILQ_HEAD(, cam_et) et_entries;
+ TAILQ_ENTRY(cam_eb) links;
path_id_t path_id;
struct cam_sim *sim;
struct timeval last_reset;
@@ -515,12 +515,12 @@ typedef int xpt_pdrvfunc_t (struct periph_driver **pdrv, void *arg);
static struct xpt_softc xsoftc;
/* Queues for our software interrupt handler */
-typedef TAILQ_HEAD(cam_isrq, struct ccb_hdr) cam_isrq_t;
+typedef TAILQ_HEAD(cam_isrq, ccb_hdr) cam_isrq_t;
static cam_isrq_t cam_bioq;
static cam_isrq_t cam_netq;
/* "Pool" of inactive ccbs managed by xpt_alloc_ccb and xpt_free_ccb */
-static SLIST_HEAD(, struct ccb_hdr) ccb_freeq;
+static SLIST_HEAD(,ccb_hdr) ccb_freeq;
static u_int xpt_max_ccbs; /*
* Maximum size of ccb pool. Modified as
* devices are added/removed or have their
@@ -575,7 +575,7 @@ static struct cdevsw xpt_cdevsw = {
static struct intr_config_hook *xpt_config_hook;
/* Registered busses */
-static TAILQ_HEAD(, struct cam_eb) xpt_busses;
+static TAILQ_HEAD(,cam_eb) xpt_busses;
static u_int bus_generation;
/* Storage for debugging datastructures */
@@ -1395,8 +1395,7 @@ xpt_remove_periph(struct cam_periph *periph)
device->generation++;
- SLIST_REMOVE(periph_head, periph, struct cam_periph,
- periph_links);
+ SLIST_REMOVE(periph_head, periph, cam_periph, periph_links);
splx(s);
}
@@ -3131,7 +3130,7 @@ xpt_action(union ccb *start_ccb)
added &= ~cur_entry->event_enable;
if (csa->event_enable == 0) {
SLIST_REMOVE(async_head, cur_entry,
- struct async_node, links);
+ async_node, links);
csa->ccb_h.path->device->refcount--;
free(cur_entry, M_DEVBUF);
} else {
@@ -5039,7 +5038,7 @@ typedef enum {
} probe_flags;
typedef struct {
- TAILQ_HEAD(, struct ccb_hdr) request_ccbs;
+ TAILQ_HEAD(, ccb_hdr) request_ccbs;
probe_action action;
union ccb saved_ccb;
probe_flags flags;
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index cd7d1b08..e862e62 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -126,13 +126,13 @@ struct cd_softc {
cd_state state;
volatile cd_flags flags;
struct bio_queue_head bio_queue;
- LIST_HEAD(, struct ccb_hdr) pending_ccbs;
+ LIST_HEAD(, ccb_hdr) pending_ccbs;
struct cd_params params;
struct disk disk;
union ccb saved_ccb;
cd_quirks quirks;
struct devstat device_stats;
- STAILQ_ENTRY(struct cd_softc) changer_links;
+ STAILQ_ENTRY(cd_softc) changer_links;
struct cdchanger *changer;
int bufs_left;
struct cam_periph *periph;
@@ -299,11 +299,11 @@ struct cdchanger {
struct callout_handle short_handle;
struct callout_handle long_handle;
volatile cd_changer_flags flags;
- STAILQ_ENTRY(struct cdchanger) changer_links;
- STAILQ_HEAD(chdevlist, struct cd_softc) chluns;
+ STAILQ_ENTRY(cdchanger) changer_links;
+ STAILQ_HEAD(chdevlist, cd_softc) chluns;
};
-static STAILQ_HEAD(changerlist, struct cdchanger) changerq;
+static STAILQ_HEAD(changerlist, cdchanger) changerq;
void
cdinit(void)
@@ -477,7 +477,7 @@ cdcleanup(struct cam_periph *periph)
softc->changer->flags &= ~CHANGER_SHORT_TMOUT_SCHED;
}
- STAILQ_REMOVE(&changerq, softc->changer, struct cdchanger,
+ STAILQ_REMOVE(&changerq, softc->changer, cdchanger,
changer_links);
xpt_print_path(periph->path);
printf("removing changer entry\n");
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index f615a00..f7fdd55 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -117,8 +117,8 @@ struct disk_params {
struct da_softc {
struct bio_queue_head bio_queue;
struct devstat device_stats;
- SLIST_ENTRY(struct da_softc) links;
- LIST_HEAD(, struct ccb_hdr) pending_ccbs;
+ SLIST_ENTRY(da_softc) links;
+ LIST_HEAD(, ccb_hdr) pending_ccbs;
da_state state;
da_flags flags;
da_quirks quirks;
@@ -278,7 +278,7 @@ static struct cdevsw da_cdevsw = {
static struct cdevsw dadisk_cdevsw;
-static SLIST_HEAD(, struct da_softc) softc_list;
+static SLIST_HEAD(,da_softc) softc_list;
static struct extend_array *daperiphs;
static int
@@ -825,7 +825,7 @@ daoninvalidate(struct cam_periph *periph)
}
splx(s);
- SLIST_REMOVE(&softc_list, softc, struct da_softc, links);
+ SLIST_REMOVE(&softc_list, softc, da_softc, links);
xpt_print_path(periph->path);
printf("lost device\n");
diff --git a/sys/cam/scsi/scsi_pt.c b/sys/cam/scsi/scsi_pt.c
index 589cc21..8f51ea8 100644
--- a/sys/cam/scsi/scsi_pt.c
+++ b/sys/cam/scsi/scsi_pt.c
@@ -78,7 +78,7 @@ typedef enum {
struct pt_softc {
struct bio_queue_head bio_queue;
struct devstat device_stats;
- LIST_HEAD(, struct ccb_hdr) pending_ccbs;
+ LIST_HEAD(, ccb_hdr) pending_ccbs;
pt_state state;
pt_flags flags;
union ccb saved_ccb;
diff --git a/sys/cam/scsi/scsi_targ_bh.c b/sys/cam/scsi/scsi_targ_bh.c
index 50c0717..ba80ac1 100644
--- a/sys/cam/scsi/scsi_targ_bh.c
+++ b/sys/cam/scsi/scsi_targ_bh.c
@@ -80,7 +80,7 @@ typedef enum {
/* We stick a pointer to the originating accept TIO in each continue I/O CCB */
#define ccb_atio ppriv_ptr1
-TAILQ_HEAD(ccb_queue, struct ccb_hdr);
+TAILQ_HEAD(ccb_queue, ccb_hdr);
struct targbh_softc {
struct ccb_queue pending_queue;
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c
index c3b2439..db27cac 100644
--- a/sys/cam/scsi/scsi_target.c
+++ b/sys/cam/scsi/scsi_target.c
@@ -1763,7 +1763,7 @@ targdone(struct cam_periph *periph, union ccb *done_ccb)
frozen = (done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0;
if (softc->state == TARG_STATE_TEARDOWN) {
SLIST_REMOVE(&softc->immed_notify_slist,
- &done_ccb->ccb_h, struct ccb_hdr,
+ &done_ccb->ccb_h, ccb_hdr,
periph_links.sle);
free(done_ccb, M_DEVBUF);
} else if (done_ccb->ccb_h.status == CAM_REQ_ABORTED) {
diff --git a/sys/cam/scsi/scsi_targetio.h b/sys/cam/scsi/scsi_targetio.h
index c9b1e54..f628d94 100644
--- a/sys/cam/scsi/scsi_targetio.h
+++ b/sys/cam/scsi/scsi_targetio.h
@@ -38,7 +38,7 @@
#include <cam/cam.h>
#include <cam/cam_ccb.h>
-TAILQ_HEAD(ccb_queue, struct ccb_hdr);
+TAILQ_HEAD(ccb_queue, ccb_hdr);
/* Determine and clear exception state in the driver */
typedef enum {
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 609baae..582770f 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -85,12 +85,12 @@ DATA_SET(linux_ioctl_handler_set, termio_handler);
struct handler_element
{
- TAILQ_ENTRY(struct handler_element) list;
+ TAILQ_ENTRY(handler_element) list;
int (*func)(struct proc *, struct linux_ioctl_args *);
int low, high, span;
};
-static TAILQ_HEAD(, struct handler_element) handlers =
+static TAILQ_HEAD(, handler_element) handlers =
TAILQ_HEAD_INITIALIZER(handlers);
static int
diff --git a/sys/compat/svr4/svr4_socket.c b/sys/compat/svr4/svr4_socket.c
index 264e654..1884b07 100644
--- a/sys/compat/svr4/svr4_socket.c
+++ b/sys/compat/svr4/svr4_socket.c
@@ -68,10 +68,10 @@ struct svr4_sockcache_entry {
struct sockaddr_un sock;/* Pathname for the socket */
udev_t dev; /* Device where the socket lives on */
ino_t ino; /* Inode where the socket lives on */
- TAILQ_ENTRY(struct svr4_sockcache_entry) entries;
+ TAILQ_ENTRY(svr4_sockcache_entry) entries;
};
-extern TAILQ_HEAD(svr4_sockcache_head, struct svr4_sockcache_entry) svr4_head;
+extern TAILQ_HEAD(svr4_sockcache_head, svr4_sockcache_entry) svr4_head;
extern int svr4_str_initialized;
struct sockaddr_un *
diff --git a/sys/contrib/softupdates/ffs_softdep.c b/sys/contrib/softupdates/ffs_softdep.c
index bea5aa8..ce48d43 100644
--- a/sys/contrib/softupdates/ffs_softdep.c
+++ b/sys/contrib/softupdates/ffs_softdep.c
@@ -745,7 +745,7 @@ softdep_flushfiles(oldmnt, flags, p)
/*
* Structures and routines associated with pagedep caching.
*/
-LIST_HEAD(pagedep_hashhead, struct pagedep) *pagedep_hashtbl;
+LIST_HEAD(pagedep_hashhead, pagedep) *pagedep_hashtbl;
u_long pagedep_hash; /* size of hash table - 1 */
#define PAGEDEP_HASH(mp, inum, lbn) \
(&pagedep_hashtbl[((((register_t)(mp)) >> 13) + (inum) + (lbn)) & \
@@ -816,7 +816,7 @@ top:
/*
* Structures and routines associated with inodedep caching.
*/
-LIST_HEAD(inodedep_hashhead, struct inodedep) *inodedep_hashtbl;
+LIST_HEAD(inodedep_hashhead, inodedep) *inodedep_hashtbl;
static u_long inodedep_hash; /* size of hash table - 1 */
static long num_inodedep; /* number of inodedep allocated */
#define INODEDEP_HASH(fs, inum) \
@@ -897,7 +897,7 @@ top:
/*
* Structures and routines associated with newblk caching.
*/
-LIST_HEAD(newblk_hashhead, struct newblk) *newblk_hashtbl;
+LIST_HEAD(newblk_hashhead, newblk) *newblk_hashtbl;
u_long newblk_hash; /* size of hash table - 1 */
#define NEWBLK_HASH(fs, inum) \
(&newblk_hashtbl[((((register_t)(fs)) >> 13) + (inum)) & newblk_hash])
diff --git a/sys/contrib/softupdates/softdep.h b/sys/contrib/softupdates/softdep.h
index f68b9ca..8bbc409 100644
--- a/sys/contrib/softupdates/softdep.h
+++ b/sys/contrib/softupdates/softdep.h
@@ -128,7 +128,7 @@
* per second to process the items on the queue.
*/
-/* LIST_HEAD(workhead, struct worklist); -- declared in buf.h */
+/* LIST_HEAD(workhead, worklist); -- declared in buf.h */
/*
* Each request can be linked onto a work queue through its worklist structure.
@@ -138,7 +138,7 @@
* and the macros below changed to use it.
*/
struct worklist {
- LIST_ENTRY(struct worklist) wk_list; /* list of work requests */
+ LIST_ENTRY(worklist) wk_list; /* list of work requests */
unsigned short wk_type; /* type of request */
unsigned short wk_state; /* state flags */
};
@@ -160,13 +160,13 @@ struct worklist {
/*
* Various types of lists
*/
-LIST_HEAD(dirremhd, struct dirrem);
-LIST_HEAD(diraddhd, struct diradd);
-LIST_HEAD(newblkhd, struct newblk);
-LIST_HEAD(inodedephd, struct inodedep);
-LIST_HEAD(allocindirhd, struct allocindir);
-LIST_HEAD(allocdirecthd, struct allocdirect);
-TAILQ_HEAD(allocdirectlst, struct allocdirect);
+LIST_HEAD(dirremhd, dirrem);
+LIST_HEAD(diraddhd, diradd);
+LIST_HEAD(newblkhd, newblk);
+LIST_HEAD(inodedephd, inodedep);
+LIST_HEAD(allocindirhd, allocindir);
+LIST_HEAD(allocdirecthd, allocdirect);
+TAILQ_HEAD(allocdirectlst, allocdirect);
/*
* The "pagedep" structure tracks the various dependencies related to
@@ -191,7 +191,7 @@ TAILQ_HEAD(allocdirectlst, struct allocdirect);
struct pagedep {
struct worklist pd_list; /* page buffer */
# define pd_state pd_list.wk_state /* check for multiple I/O starts */
- LIST_ENTRY(struct pagedep) pd_hash; /* hashed lookup */
+ LIST_ENTRY(pagedep) pd_hash; /* hashed lookup */
struct mount *pd_mnt; /* associated mount point */
ino_t pd_ino; /* associated file */
ufs_lbn_t pd_lbn; /* block within file */
@@ -250,12 +250,12 @@ struct pagedep {
struct inodedep {
struct worklist id_list; /* buffer holding inode block */
# define id_state id_list.wk_state /* inode dependency state */
- LIST_ENTRY(struct inodedep) id_hash; /* hashed lookup */
+ LIST_ENTRY(inodedep) id_hash; /* hashed lookup */
struct fs *id_fs; /* associated filesystem */
ino_t id_ino; /* dependent inode */
nlink_t id_nlinkdelta; /* saved effective link count */
struct dinode *id_savedino; /* saved dinode contents */
- LIST_ENTRY(struct inodedep) id_deps; /* bmsafemap's list of inodedep's */
+ LIST_ENTRY(inodedep) id_deps; /* bmsafemap's list of inodedep's */
struct buf *id_buf; /* related bmsafemap (if pending) */
off_t id_savedsize; /* file size saved during rollback */
struct workhead id_pendinghd; /* entries awaiting directory write */
@@ -274,11 +274,11 @@ struct inodedep {
* is not set (i.e., its cylinder group map has not been written).
*/
struct newblk {
- LIST_ENTRY(struct newblk) nb_hash; /* hashed lookup */
+ LIST_ENTRY(newblk) nb_hash; /* hashed lookup */
struct fs *nb_fs; /* associated filesystem */
ufs_daddr_t nb_newblkno; /* allocated block number */
int nb_state; /* state of bitmap dependency */
- LIST_ENTRY(struct newblk) nb_deps; /* bmsafemap's list of newblk's */
+ LIST_ENTRY(newblk) nb_deps; /* bmsafemap's list of newblk's */
struct bmsafemap *nb_bmsafemap; /* associated bmsafemap */
};
@@ -321,13 +321,13 @@ struct bmsafemap {
struct allocdirect {
struct worklist ad_list; /* buffer holding block */
# define ad_state ad_list.wk_state /* block pointer state */
- TAILQ_ENTRY(struct allocdirect) ad_next; /* inodedep's list of allocdirect's */
+ TAILQ_ENTRY(allocdirect) ad_next; /* inodedep's list of allocdirect's */
ufs_lbn_t ad_lbn; /* block within file */
ufs_daddr_t ad_newblkno; /* new value of block pointer */
ufs_daddr_t ad_oldblkno; /* old value of block pointer */
long ad_newsize; /* size of new block */
long ad_oldsize; /* size of old block */
- LIST_ENTRY(struct allocdirect) ad_deps; /* bmsafemap's list of allocdirect's */
+ LIST_ENTRY(allocdirect) ad_deps; /* bmsafemap's list of allocdirect's */
struct buf *ad_buf; /* cylgrp buffer (if pending) */
struct inodedep *ad_inodedep; /* associated inodedep */
struct freefrag *ad_freefrag; /* fragment to be freed (if any) */
@@ -375,13 +375,13 @@ struct indirdep {
struct allocindir {
struct worklist ai_list; /* buffer holding indirect block */
# define ai_state ai_list.wk_state /* indirect block pointer state */
- LIST_ENTRY(struct allocindir) ai_next; /* indirdep's list of allocindir's */
+ LIST_ENTRY(allocindir) ai_next; /* indirdep's list of allocindir's */
int ai_offset; /* pointer offset in indirect block */
ufs_daddr_t ai_newblkno; /* new block pointer value */
ufs_daddr_t ai_oldblkno; /* old block pointer value */
struct freefrag *ai_freefrag; /* block to be freed when complete */
struct indirdep *ai_indirdep; /* address of associated indirdep */
- LIST_ENTRY(struct allocindir) ai_deps; /* bmsafemap's list of allocindir's */
+ LIST_ENTRY(allocindir) ai_deps; /* bmsafemap's list of allocindir's */
struct buf *ai_buf; /* cylgrp buffer (if pending) */
};
@@ -478,7 +478,7 @@ struct freefile {
struct diradd {
struct worklist da_list; /* id_inowait or id_pendinghd list */
# define da_state da_list.wk_state /* state of the new directory entry */
- LIST_ENTRY(struct diradd) da_pdlist; /* pagedep holding directory block */
+ LIST_ENTRY(diradd) da_pdlist; /* pagedep holding directory block */
doff_t da_offset; /* offset of new dir entry in dir blk */
ino_t da_newinum; /* inode number for the new dir entry */
union {
@@ -518,9 +518,9 @@ struct mkdir {
# define md_state md_list.wk_state /* type: MKDIR_PARENT or MKDIR_BODY */
struct diradd *md_diradd; /* associated diradd */
struct buf *md_buf; /* MKDIR_BODY: buffer holding dir */
- LIST_ENTRY(struct mkdir) md_mkdirs; /* list of all mkdirs */
+ LIST_ENTRY(mkdir) md_mkdirs; /* list of all mkdirs */
};
-LIST_HEAD(mkdirlist, struct mkdir) mkdirlisthd;
+LIST_HEAD(mkdirlist, mkdir) mkdirlisthd;
/*
* A "dirrem" structure describes an operation to decrement the link
@@ -536,7 +536,7 @@ LIST_HEAD(mkdirlist, struct mkdir) mkdirlisthd;
struct dirrem {
struct worklist dm_list; /* delayed worklist */
# define dm_state dm_list.wk_state /* state of the old directory entry */
- LIST_ENTRY(struct dirrem) dm_next; /* pagedep's list of dirrem's */
+ LIST_ENTRY(dirrem) dm_next; /* pagedep's list of dirrem's */
struct mount *dm_mnt; /* associated mount point */
ino_t dm_oldinum; /* inum of the removed dir entry */
union {
diff --git a/sys/dev/advansys/advlib.h b/sys/dev/advansys/advlib.h
index a8cd946..ba9703d 100644
--- a/sys/dev/advansys/advlib.h
+++ b/sys/dev/advansys/advlib.h
@@ -93,7 +93,7 @@ struct adv_ccb_info {
adv_ccb_state state;
bus_dmamap_t dmamap;
union ccb* ccb;
- SLIST_ENTRY(struct adv_ccb_info) links;
+ SLIST_ENTRY(adv_ccb_info) links;
};
#define ccb_cinfo_ptr spriv_ptr0
@@ -497,9 +497,9 @@ struct adv_softc {
bus_space_tag_t tag;
bus_space_handle_t bsh;
struct cam_sim *sim;
- LIST_HEAD(, struct ccb_hdr) pending_ccbs;
+ LIST_HEAD(, ccb_hdr) pending_ccbs;
struct adv_ccb_info *ccb_infos;
- SLIST_HEAD(, struct adv_ccb_info) free_ccb_infos;
+ SLIST_HEAD(, adv_ccb_info) free_ccb_infos;
bus_dma_tag_t parent_dmat;
bus_dma_tag_t buffer_dmat;
bus_dma_tag_t sense_dmat;
diff --git a/sys/dev/advansys/adwlib.h b/sys/dev/advansys/adwlib.h
index 7973dca..c470c10 100644
--- a/sys/dev/advansys/adwlib.h
+++ b/sys/dev/advansys/adwlib.h
@@ -324,7 +324,7 @@ struct sg_map_node {
bus_dmamap_t sg_dmamap;
bus_addr_t sg_physaddr;
struct adw_sg_block* sg_vaddr;
- SLIST_ENTRY(struct sg_map_node) links;
+ SLIST_ENTRY(sg_map_node) links;
};
typedef enum {
@@ -425,7 +425,7 @@ struct acb {
struct adw_sg_block* sg_blocks;
bus_addr_t sg_busaddr;
struct scsi_sense_data sense_data;
- SLIST_ENTRY(struct acb) links;
+ SLIST_ENTRY(acb) links;
};
/*
@@ -612,15 +612,15 @@ struct adw_softc
struct adw_carrier *free_carriers;
struct adw_carrier *commandq;
struct adw_carrier *responseq;
- LIST_HEAD(, struct ccb_hdr) pending_ccbs;
- SLIST_HEAD(, struct acb) free_acb_list;
+ LIST_HEAD(, ccb_hdr) pending_ccbs;
+ SLIST_HEAD(, acb) free_acb_list;
bus_dma_tag_t parent_dmat;
bus_dma_tag_t carrier_dmat; /* dmat for our acb carriers*/
bus_dmamap_t carrier_dmamap;
bus_dma_tag_t acb_dmat; /* dmat for our ccb array */
bus_dmamap_t acb_dmamap;
bus_dma_tag_t sg_dmat; /* dmat for our sg maps */
- SLIST_HEAD(, struct sg_map_node) sg_maps;
+ SLIST_HEAD(, sg_map_node) sg_maps;
bus_addr_t acb_busbase;
bus_addr_t carrier_busbase;
adw_chip chip;
diff --git a/sys/dev/aha/ahareg.h b/sys/dev/aha/ahareg.h
index f634a85..339eace 100644
--- a/sys/dev/aha/ahareg.h
+++ b/sys/dev/aha/ahareg.h
@@ -319,7 +319,7 @@ typedef enum {
struct aha_ccb {
struct aha_hccb hccb; /* hccb assumed to be at 0 */
- SLIST_ENTRY(struct aha_ccb) links;
+ SLIST_ENTRY(aha_ccb) links;
u_int32_t flags;
union ccb *ccb;
bus_dmamap_t dmamap;
@@ -331,7 +331,7 @@ struct sg_map_node {
bus_dmamap_t sg_dmamap;
bus_addr_t sg_physaddr;
aha_sg_t* sg_vaddr;
- SLIST_ENTRY(struct sg_map_node) links;
+ SLIST_ENTRY(sg_map_node) links;
};
struct aha_softc {
@@ -344,8 +344,8 @@ struct aha_softc {
aha_mbox_out_t *last_outbox;
aha_mbox_in_t *last_inbox;
struct aha_ccb *aha_ccb_array;
- SLIST_HEAD(, struct aha_ccb) free_aha_ccbs;
- LIST_HEAD(, struct ccb_hdr) pending_ccbs;
+ SLIST_HEAD(,aha_ccb) free_aha_ccbs;
+ LIST_HEAD(,ccb_hdr) pending_ccbs;
u_int active_ccbs;
u_int32_t aha_ccb_physbase;
aha_ccb_opcode_t ccb_sg_opcode;
@@ -367,7 +367,7 @@ struct aha_softc {
bus_dma_tag_t ccb_dmat; /* dmat for our ccb array */
bus_dmamap_t ccb_dmamap;
bus_dma_tag_t sg_dmat; /* dmat for our sg maps */
- SLIST_HEAD(, struct sg_map_node) sg_maps;
+ SLIST_HEAD(, sg_map_node) sg_maps;
bus_addr_t mailbox_physbase;
u_int num_ccbs; /* Number of CCBs malloc'd */
u_int max_ccbs; /* Maximum allocatable CCBs */
diff --git a/sys/dev/ahb/ahbreg.h b/sys/dev/ahb/ahbreg.h
index 1312748..c72f068 100644
--- a/sys/dev/ahb/ahbreg.h
+++ b/sys/dev/ahb/ahbreg.h
@@ -251,7 +251,7 @@ struct ecb {
struct ecb_status status;
struct scsi_sense_data sense;
ahb_sg_t sg_list[AHB_NSEG];
- SLIST_ENTRY(struct ecb) links;
+ SLIST_ENTRY(ecb) links;
ecb_state state;
union ccb *ccb;
bus_dmamap_t dmamap;
@@ -262,8 +262,8 @@ struct ahb_softc {
bus_space_handle_t bsh;
struct cam_sim *sim;
struct cam_path *path;
- SLIST_HEAD(, struct ecb) free_ecbs;
- LIST_HEAD(, struct ccb_hdr) pending_ccbs;
+ SLIST_HEAD(,ecb) free_ecbs;
+ LIST_HEAD(,ccb_hdr) pending_ccbs;
struct ecb *ecb_array;
u_int32_t ecb_physbase;
bus_dma_tag_t buffer_dmat; /* dmat for buffer I/O */
diff --git a/sys/dev/aic/aicvar.h b/sys/dev/aic/aicvar.h
index ce43a6b..5d789b4 100644
--- a/sys/dev/aic/aicvar.h
+++ b/sys/dev/aic/aicvar.h
@@ -76,7 +76,7 @@ struct aic_softc {
struct cam_sim *sim;
struct cam_path *path;
- TAILQ_HEAD(, struct ccb_hdr) pending_ccbs, nexus_ccbs;
+ TAILQ_HEAD(,ccb_hdr) pending_ccbs, nexus_ccbs;
struct aic_scb *nexus;
u_int32_t flags;
diff --git a/sys/dev/aic7xxx/aic7xxx.h b/sys/dev/aic7xxx/aic7xxx.h
index 5aed8ce..534f2e4 100644
--- a/sys/dev/aic7xxx/aic7xxx.h
+++ b/sys/dev/aic7xxx/aic7xxx.h
@@ -250,7 +250,7 @@ struct hardware_scb {
struct scb {
struct hardware_scb *hscb;
- SLIST_ENTRY(struct scb) links; /* for chaining */
+ SLIST_ENTRY(scb) links; /* for chaining */
union ccb *ccb; /* the ccb for this cmd */
scb_flag flags;
bus_dmamap_t dmamap;
@@ -432,13 +432,13 @@ struct sg_map_node {
bus_dmamap_t sg_dmamap;
bus_addr_t sg_physaddr;
struct ahc_dma_seg* sg_vaddr;
- SLIST_ENTRY(struct sg_map_node) links;
+ SLIST_ENTRY(sg_map_node) links;
};
struct scb_data {
struct hardware_scb *hscbs; /* Array of hardware SCBs */
struct scb *scbarray; /* Array of kernel SCBs */
- SLIST_HEAD(, struct scb) free_scbs; /*
+ SLIST_HEAD(, scb) free_scbs; /*
* Pool of SCBs ready to be assigned
* commands to execute.
*/
@@ -454,7 +454,7 @@ struct scb_data {
bus_dmamap_t sense_dmamap;
bus_addr_t sense_busaddr;
bus_dma_tag_t sg_dmat; /* dmat for our sg segments */
- SLIST_HEAD(, struct sg_map_node) sg_maps;
+ SLIST_HEAD(, sg_map_node) sg_maps;
u_int8_t numscbs;
u_int8_t maxhscbs; /* Number of SCBs on the card */
u_int8_t init_level; /*
@@ -472,7 +472,7 @@ struct ahc_softc {
/*
* CCBs that have been send to the controller
*/
- LIST_HEAD(, struct ccb_hdr) pending_ccbs;
+ LIST_HEAD(, ccb_hdr) pending_ccbs;
/*
* Target mode related state kept on a per enabled lun basis.
diff --git a/sys/dev/aic7xxx/aicasm.c b/sys/dev/aic7xxx/aicasm.c
index a7f9c85..9af5c83 100644
--- a/sys/dev/aic7xxx/aicasm.c
+++ b/sys/dev/aic7xxx/aicasm.c
@@ -42,14 +42,14 @@
#include "sequencer.h"
typedef struct patch {
- STAILQ_ENTRY(struct patch) links;
+ STAILQ_ENTRY(patch) links;
int patch_func;
u_int begin;
u_int skip_instr;
u_int skip_patch;
} patch_t;
-STAILQ_HEAD(patch_list, struct patch) patches;
+STAILQ_HEAD(patch_list, patch) patches;
static void usage(void);
static void back_patch(void);
@@ -70,7 +70,7 @@ FILE *regfile;
char *listfilename;
FILE *listfile;
-static STAILQ_HEAD(, struct instruction) seq_program;
+static STAILQ_HEAD(,instruction) seq_program;
struct scope_list scope_stack;
symlist_t patch_functions;
diff --git a/sys/dev/aic7xxx/aicasm.h b/sys/dev/aic7xxx/aicasm.h
index 2f729b3..7e6b468 100644
--- a/sys/dev/aic7xxx/aicasm.h
+++ b/sys/dev/aic7xxx/aicasm.h
@@ -41,7 +41,7 @@
typedef struct path_entry {
char *directory;
int quoted_includes_only;
- SLIST_ENTRY(struct path_entry) links;
+ SLIST_ENTRY(path_entry) links;
} *path_entry_t;
typedef enum {
@@ -50,7 +50,7 @@ typedef enum {
SOURCE_FILE
} include_type;
-SLIST_HEAD(path_list, struct path_entry);
+SLIST_HEAD(path_list, path_entry);
extern struct path_list search_path;
extern struct scope_list scope_stack;
diff --git a/sys/dev/aic7xxx/aicasm/aicasm.c b/sys/dev/aic7xxx/aicasm/aicasm.c
index a7f9c85..9af5c83 100644
--- a/sys/dev/aic7xxx/aicasm/aicasm.c
+++ b/sys/dev/aic7xxx/aicasm/aicasm.c
@@ -42,14 +42,14 @@
#include "sequencer.h"
typedef struct patch {
- STAILQ_ENTRY(struct patch) links;
+ STAILQ_ENTRY(patch) links;
int patch_func;
u_int begin;
u_int skip_instr;
u_int skip_patch;
} patch_t;
-STAILQ_HEAD(patch_list, struct patch) patches;
+STAILQ_HEAD(patch_list, patch) patches;
static void usage(void);
static void back_patch(void);
@@ -70,7 +70,7 @@ FILE *regfile;
char *listfilename;
FILE *listfile;
-static STAILQ_HEAD(, struct instruction) seq_program;
+static STAILQ_HEAD(,instruction) seq_program;
struct scope_list scope_stack;
symlist_t patch_functions;
diff --git a/sys/dev/aic7xxx/aicasm/aicasm.h b/sys/dev/aic7xxx/aicasm/aicasm.h
index 2f729b3..7e6b468 100644
--- a/sys/dev/aic7xxx/aicasm/aicasm.h
+++ b/sys/dev/aic7xxx/aicasm/aicasm.h
@@ -41,7 +41,7 @@
typedef struct path_entry {
char *directory;
int quoted_includes_only;
- SLIST_ENTRY(struct path_entry) links;
+ SLIST_ENTRY(path_entry) links;
} *path_entry_t;
typedef enum {
@@ -50,7 +50,7 @@ typedef enum {
SOURCE_FILE
} include_type;
-SLIST_HEAD(path_list, struct path_entry);
+SLIST_HEAD(path_list, path_entry);
extern struct path_list search_path;
extern struct scope_list scope_stack;
diff --git a/sys/dev/aic7xxx/aicasm/aicasm_scan.l b/sys/dev/aic7xxx/aicasm/aicasm_scan.l
index 51a13f2..28689cb 100644
--- a/sys/dev/aic7xxx/aicasm/aicasm_scan.l
+++ b/sys/dev/aic7xxx/aicasm/aicasm_scan.l
@@ -200,10 +200,10 @@ typedef struct include {
YY_BUFFER_STATE buffer;
int lineno;
char *filename;
- SLIST_ENTRY(struct include) links;
+ SLIST_ENTRY(include) links;
}include_t;
-SLIST_HEAD(, struct include) include_stack;
+SLIST_HEAD(, include) include_stack;
void
include_file(file_name, type)
diff --git a/sys/dev/aic7xxx/aicasm/aicasm_symbol.h b/sys/dev/aic7xxx/aicasm/aicasm_symbol.h
index d86b4f0..79809db 100644
--- a/sys/dev/aic7xxx/aicasm/aicasm_symbol.h
+++ b/sys/dev/aic7xxx/aicasm/aicasm_symbol.h
@@ -58,7 +58,7 @@ struct reg_info {
int typecheck_masks;
};
-typedef SLIST_HEAD(symlist, struct symbol_node) symlist_t;
+typedef SLIST_HEAD(symlist, symbol_node) symlist_t;
struct mask_info {
symlist_t symrefs;
@@ -106,7 +106,7 @@ typedef struct symbol_ref {
} symbol_ref_t;
typedef struct symbol_node {
- SLIST_ENTRY(struct symbol_node) links;
+ SLIST_ENTRY(symbol_node) links;
symbol_t *symbol;
}symbol_node_t;
@@ -123,9 +123,9 @@ typedef struct patch_info {
} patch_info_t;
typedef struct scope {
- SLIST_ENTRY(struct scope) scope_stack_links;
- TAILQ_ENTRY(struct scope) scope_links;
- TAILQ_HEAD(, struct scope) inner_scope;
+ SLIST_ENTRY(scope) scope_stack_links;
+ TAILQ_ENTRY(scope) scope_links;
+ TAILQ_HEAD(, scope) inner_scope;
scope_type type;
int inner_scope_patches;
int begin_addr;
@@ -134,8 +134,8 @@ typedef struct scope {
int func_num;
} scope_t;
-SLIST_HEAD(scope_list, struct scope);
-TAILQ_HEAD(scope_tailq, struct scope);
+SLIST_HEAD(scope_list, scope);
+TAILQ_HEAD(scope_tailq, scope);
void symbol_delete __P((symbol_t *symbol));
diff --git a/sys/dev/aic7xxx/aicasm_scan.l b/sys/dev/aic7xxx/aicasm_scan.l
index 51a13f2..28689cb 100644
--- a/sys/dev/aic7xxx/aicasm_scan.l
+++ b/sys/dev/aic7xxx/aicasm_scan.l
@@ -200,10 +200,10 @@ typedef struct include {
YY_BUFFER_STATE buffer;
int lineno;
char *filename;
- SLIST_ENTRY(struct include) links;
+ SLIST_ENTRY(include) links;
}include_t;
-SLIST_HEAD(, struct include) include_stack;
+SLIST_HEAD(, include) include_stack;
void
include_file(file_name, type)
diff --git a/sys/dev/aic7xxx/aicasm_symbol.h b/sys/dev/aic7xxx/aicasm_symbol.h
index d86b4f0..79809db 100644
--- a/sys/dev/aic7xxx/aicasm_symbol.h
+++ b/sys/dev/aic7xxx/aicasm_symbol.h
@@ -58,7 +58,7 @@ struct reg_info {
int typecheck_masks;
};
-typedef SLIST_HEAD(symlist, struct symbol_node) symlist_t;
+typedef SLIST_HEAD(symlist, symbol_node) symlist_t;
struct mask_info {
symlist_t symrefs;
@@ -106,7 +106,7 @@ typedef struct symbol_ref {
} symbol_ref_t;
typedef struct symbol_node {
- SLIST_ENTRY(struct symbol_node) links;
+ SLIST_ENTRY(symbol_node) links;
symbol_t *symbol;
}symbol_node_t;
@@ -123,9 +123,9 @@ typedef struct patch_info {
} patch_info_t;
typedef struct scope {
- SLIST_ENTRY(struct scope) scope_stack_links;
- TAILQ_ENTRY(struct scope) scope_links;
- TAILQ_HEAD(, struct scope) inner_scope;
+ SLIST_ENTRY(scope) scope_stack_links;
+ TAILQ_ENTRY(scope) scope_links;
+ TAILQ_HEAD(, scope) inner_scope;
scope_type type;
int inner_scope_patches;
int begin_addr;
@@ -134,8 +134,8 @@ typedef struct scope {
int func_num;
} scope_t;
-SLIST_HEAD(scope_list, struct scope);
-TAILQ_HEAD(scope_tailq, struct scope);
+SLIST_HEAD(scope_list, scope);
+TAILQ_HEAD(scope_tailq, scope);
void symbol_delete __P((symbol_t *symbol));
diff --git a/sys/dev/aic7xxx/sequencer.h b/sys/dev/aic7xxx/sequencer.h
index a84951c..4f05491 100644
--- a/sys/dev/aic7xxx/sequencer.h
+++ b/sys/dev/aic7xxx/sequencer.h
@@ -69,7 +69,7 @@ struct instruction {
union ins_formats format;
u_int srcline;
struct symbol *patch_label;
- STAILQ_ENTRY(struct instruction) links;
+ STAILQ_ENTRY(instruction) links;
};
#define AIC_OP_OR 0x0
diff --git a/sys/dev/amd/amd.h b/sys/dev/amd/amd.h
index e36956e..85f4f80 100644
--- a/sys/dev/amd/amd.h
+++ b/sys/dev/amd/amd.h
@@ -154,7 +154,7 @@ typedef struct _EEprom {
* SCSI Request Block
*/
struct amd_srb {
- TAILQ_ENTRY(struct amd_srb) links;
+ TAILQ_ENTRY(amd_srb) links;
u_int8_t CmdBlock[12];
union ccb *pccb;
bus_dmamap_t dmamap;
@@ -187,7 +187,7 @@ struct amd_srb {
u_int8_t ScsiCmdLen;
};
-TAILQ_HEAD(srb_queue, struct amd_srb);
+TAILQ_HEAD(srb_queue, amd_srb);
/*
* Per-adapter, software configuration.
diff --git a/sys/dev/amr/amrvar.h b/sys/dev/amr/amrvar.h
index 6a136be..5edfb1f 100644
--- a/sys/dev/amr/amrvar.h
+++ b/sys/dev/amr/amrvar.h
@@ -69,7 +69,7 @@ struct amr_logdrive
*/
struct amr_command
{
- TAILQ_ENTRY(struct amr_command) ac_link;
+ TAILQ_ENTRY(amr_command) ac_link;
struct amr_softc *ac_sc;
u_int8_t ac_slot;
@@ -140,9 +140,9 @@ struct amr_softc
int amr_waitbufs;
struct amr_command *amr_busycmd[AMR_MAXCMD];
int amr_busycmdcount;
- TAILQ_HEAD(, struct amr_command) amr_work;
+ TAILQ_HEAD(,amr_command) amr_work;
int amr_workcount;
- TAILQ_HEAD(, struct amr_command) amr_freecmds;
+ TAILQ_HEAD(,amr_command) amr_freecmds;
int amr_locks; /* reentrancy avoidance */
diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h
index 3947060..14a3d97 100644
--- a/sys/dev/ata/ata-all.h
+++ b/sys/dev/ata/ata-all.h
@@ -304,8 +304,8 @@ struct ata_softc {
#define ATA_ACTIVE_ATAPI 0x6
#define ATA_REINITING 0x7
- TAILQ_HEAD(, struct ad_request) ata_queue; /* head of ATA queue */
- TAILQ_HEAD(, struct atapi_request) atapi_queue; /* head of ATAPI queue */
+ TAILQ_HEAD(, ad_request) ata_queue; /* head of ATA queue */
+ TAILQ_HEAD(, atapi_request) atapi_queue; /* head of ATAPI queue */
void *running; /* currently running request */
};
diff --git a/sys/dev/ata/ata-disk.h b/sys/dev/ata/ata-disk.h
index b7c870a..4a184d9 100644
--- a/sys/dev/ata/ata-disk.h
+++ b/sys/dev/ata/ata-disk.h
@@ -67,7 +67,7 @@ struct ad_request {
int8_t *data; /* pointer to data buf */
struct bio *bp; /* associated bio ptr */
u_int8_t tag; /* tag ID of this request */
- TAILQ_ENTRY(struct ad_request) chain; /* list management */
+ TAILQ_ENTRY(ad_request) chain; /* list management */
};
void ad_attach(struct ata_softc *, int32_t);
diff --git a/sys/dev/ata/atapi-all.h b/sys/dev/ata/atapi-all.h
index 35512ca..6223f5d 100644
--- a/sys/dev/ata/atapi-all.h
+++ b/sys/dev/ata/atapi-all.h
@@ -174,7 +174,7 @@ struct atapi_request {
int8_t *data; /* pointer to data buf */
atapi_callback_t *callback; /* ptr to callback func */
void *driver; /* driver specific */
- TAILQ_ENTRY(struct atapi_request) chain; /* list management */
+ TAILQ_ENTRY(atapi_request) chain; /* list management */
};
void atapi_attach(struct ata_softc *, int32_t);
diff --git a/sys/dev/awi/awivar.h b/sys/dev/awi/awivar.h
index bc2da4c..e3c85cc 100644
--- a/sys/dev/awi/awivar.h
+++ b/sys/dev/awi/awivar.h
@@ -61,7 +61,7 @@ enum awi_status {
struct awi_bss
{
- TAILQ_ENTRY(struct awi_bss) list;
+ TAILQ_ENTRY(awi_bss) list;
u_int8_t esrc[ETHER_ADDR_LEN];
u_int8_t chanset; /* channel set to use */
u_int8_t pattern; /* hop pattern to use */
@@ -116,7 +116,7 @@ struct awi_softc
int sc_mgt_timer;
- TAILQ_HEAD(, struct awi_bss) sc_scan;
+ TAILQ_HEAD(, awi_bss) sc_scan;
u_int8_t sc_scan_cur;
u_int8_t sc_scan_min;
u_int8_t sc_scan_max;
diff --git a/sys/dev/buslogic/btreg.h b/sys/dev/buslogic/btreg.h
index 617340c..f6a1851 100644
--- a/sys/dev/buslogic/btreg.h
+++ b/sys/dev/buslogic/btreg.h
@@ -580,7 +580,7 @@ typedef enum {
struct bt_ccb {
struct bt_hccb hccb;
- SLIST_ENTRY(struct bt_ccb) links;
+ SLIST_ENTRY(bt_ccb) links;
u_int32_t flags;
union ccb *ccb;
bus_dmamap_t dmamap;
@@ -592,7 +592,7 @@ struct sg_map_node {
bus_dmamap_t sg_dmamap;
bus_addr_t sg_physaddr;
bt_sg_t* sg_vaddr;
- SLIST_ENTRY(struct sg_map_node) links;
+ SLIST_ENTRY(sg_map_node) links;
};
struct bt_softc {
@@ -610,8 +610,8 @@ struct bt_softc {
bt_mbox_out_t *last_outbox;
bt_mbox_in_t *last_inbox;
struct bt_ccb *bt_ccb_array;
- SLIST_HEAD(, struct bt_ccb) free_bt_ccbs;
- LIST_HEAD(, struct ccb_hdr) pending_ccbs;
+ SLIST_HEAD(,bt_ccb) free_bt_ccbs;
+ LIST_HEAD(,ccb_hdr) pending_ccbs;
u_int active_ccbs;
u_int32_t bt_ccb_physbase;
bt_mbox_in_t *in_boxes;
@@ -633,7 +633,7 @@ struct bt_softc {
bus_dma_tag_t sg_dmat; /* dmat for our sg segments */
bus_dma_tag_t sense_dmat; /* dmat for our sense buffers */
bus_dmamap_t sense_dmamap;
- SLIST_HEAD(, struct sg_map_node) sg_maps;
+ SLIST_HEAD(, sg_map_node) sg_maps;
bus_addr_t mailbox_physbase;
u_int num_ccbs; /* Number of CCBs malloc'd */
u_int max_ccbs; /* Maximum allocatable CCBs */
diff --git a/sys/dev/dpt/dpt.h b/sys/dev/dpt/dpt.h
index 777e775..6d6230e 100644
--- a/sys/dev/dpt/dpt.h
+++ b/sys/dev/dpt/dpt.h
@@ -894,7 +894,7 @@ typedef struct dpt_ccb {
u_int32_t transaction_id;
u_int32_t result;
caddr_t data;
- SLIST_ENTRY(struct dpt_ccb) links;
+ SLIST_ENTRY(dpt_ccb) links;
#ifdef DPT_MEASURE_PERFORMANCE
u_int32_t submitted_time;
@@ -1016,7 +1016,7 @@ struct sg_map_node {
bus_dmamap_t sg_dmamap;
bus_addr_t sg_physaddr;
dpt_sg_t* sg_vaddr;
- SLIST_ENTRY(struct sg_map_node) links;
+ SLIST_ENTRY(sg_map_node) links;
};
/* Main state machine and interface structure */
@@ -1039,14 +1039,14 @@ typedef struct dpt_softc {
int pending_ccbs;
int completed_ccbs;
- SLIST_HEAD(, struct dpt_ccb) free_dccb_list;
- LIST_HEAD(, struct ccb_hdr) pending_ccb_list;
+ SLIST_HEAD(, dpt_ccb) free_dccb_list;
+ LIST_HEAD(, ccb_hdr) pending_ccb_list;
bus_dma_tag_t parent_dmat;
bus_dma_tag_t dccb_dmat; /* dmat for our ccb array */
bus_dmamap_t dccb_dmamap;
bus_dma_tag_t sg_dmat; /* dmat for our sg maps */
- SLIST_HEAD(, struct sg_map_node) sg_maps;
+ SLIST_HEAD(, sg_map_node) sg_maps;
struct cam_sim *sims[MAX_CHANNELS];
struct cam_path *paths[MAX_CHANNELS];
@@ -1069,7 +1069,7 @@ typedef struct dpt_softc {
u_int8_t irq;
u_int8_t dma_channel;
- TAILQ_ENTRY(struct dpt_softc) links;
+ TAILQ_ENTRY(dpt_softc) links;
int unit;
int init_level;
@@ -1266,7 +1266,7 @@ dpt_time_delta(struct timeval start,
(end.tv_usec - start.tv_usec) );
}
-extern TAILQ_HEAD(dpt_softc_list, struct dpt_softc) dpt_softcs;
+extern TAILQ_HEAD(dpt_softc_list, dpt_softc) dpt_softcs;
extern int dpt_controllers_present;
diff --git a/sys/dev/eisa/eisaconf.c b/sys/dev/eisa/eisaconf.c
index d37f00e..1e9dcda 100644
--- a/sys/dev/eisa/eisaconf.c
+++ b/sys/dev/eisa/eisaconf.c
@@ -53,19 +53,19 @@ typedef struct resvaddr {
u_long size; /* size of reserved area */
int flags;
struct resource *res; /* resource manager handle */
- LIST_ENTRY(struct resvaddr) links; /* List links */
+ LIST_ENTRY(resvaddr) links; /* List links */
} resvaddr_t;
-LIST_HEAD(resvlist, struct resvaddr);
+LIST_HEAD(resvlist, resvaddr);
struct irq_node {
int irq_no;
int irq_trigger;
void *idesc;
- TAILQ_ENTRY(struct irq_node) links;
+ TAILQ_ENTRY(irq_node) links;
};
-TAILQ_HEAD(irqlist, struct irq_node);
+TAILQ_HEAD(irqlist, irq_node);
struct eisa_ioconf {
int slot;
diff --git a/sys/dev/ida/idavar.h b/sys/dev/ida/idavar.h
index 223ac6c..0e3db00 100644
--- a/sys/dev/ida/idavar.h
+++ b/sys/dev/ida/idavar.h
@@ -98,8 +98,8 @@ struct ida_qcb {
qcb_state state;
short flags;
union {
- STAILQ_ENTRY(struct ida_qcb) stqe;
- SLIST_ENTRY(struct ida_qcb) sle;
+ STAILQ_ENTRY(ida_qcb) stqe;
+ SLIST_ENTRY(ida_qcb) sle;
} link;
bus_dmamap_t dmamap;
bus_addr_t hwqcb_busaddr;
@@ -152,8 +152,8 @@ struct ida_softc {
struct ida_hardware_qcb *hwqcbs; /* HW QCB array */
struct ida_qcb *qcbs; /* kernel QCB array */
- SLIST_HEAD(, struct ida_qcb) free_qcbs;
- STAILQ_HEAD(, struct ida_qcb) qcb_queue;
+ SLIST_HEAD(, ida_qcb) free_qcbs;
+ STAILQ_HEAD(, ida_qcb) qcb_queue;
struct bio_queue_head bio_queue;
struct ida_access cmd;
diff --git a/sys/dev/kbd/kbd.c b/sys/dev/kbd/kbd.c
index a215dd1..ba436be 100644
--- a/sys/dev/kbd/kbd.c
+++ b/sys/dev/kbd/kbd.c
@@ -52,7 +52,7 @@ typedef struct genkbd_softc {
struct selinfo gkb_rsel;
} genkbd_softc_t;
-static SLIST_HEAD(, struct keyboard_driver) keyboard_drivers =
+static SLIST_HEAD(, keyboard_driver) keyboard_drivers =
SLIST_HEAD_INITIALIZER(keyboard_drivers);
/* local arrays */
@@ -164,7 +164,7 @@ kbd_add_driver(keyboard_driver_t *driver)
int
kbd_delete_driver(keyboard_driver_t *driver)
{
- SLIST_REMOVE(&keyboard_drivers, driver, struct keyboard_driver, link);
+ SLIST_REMOVE(&keyboard_drivers, driver, keyboard_driver, link);
SLIST_NEXT(driver, link) = NULL;
return 0;
}
diff --git a/sys/dev/kbd/kbdreg.h b/sys/dev/kbd/kbdreg.h
index 1a71527..54b2d6d 100644
--- a/sys/dev/kbd/kbdreg.h
+++ b/sys/dev/kbd/kbdreg.h
@@ -157,7 +157,7 @@ typedef struct keyboard_switch {
/* keyboard driver */
typedef struct keyboard_driver {
- SLIST_ENTRY(struct keyboard_driver) link;
+ SLIST_ENTRY(keyboard_driver) link;
char *name;
keyboard_switch_t *kbdsw;
int (*configure)(int); /* backdoor for the console driver */
diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h
index cd47d2d..4a68b9c 100644
--- a/sys/dev/mii/miivar.h
+++ b/sys/dev/mii/miivar.h
@@ -74,7 +74,7 @@ struct mii_data {
* PHYs is required so they can all be notified when a media
* request is made.
*/
- LIST_HEAD(mii_listhead, struct mii_softc) mii_phys;
+ LIST_HEAD(mii_listhead, mii_softc) mii_phys;
int mii_instance;
/*
@@ -113,7 +113,7 @@ typedef int (*mii_downcall_t) __P((struct mii_softc *, struct mii_data *, int));
struct mii_softc {
device_t mii_dev; /* generic device glue */
- LIST_ENTRY(struct mii_softc) mii_list; /* entry on parent's PHY list */
+ LIST_ENTRY(mii_softc) mii_list; /* entry on parent's PHY list */
int mii_phy; /* our MII address */
int mii_inst; /* instance for ifmedia */
diff --git a/sys/dev/mlx/mlxvar.h b/sys/dev/mlx/mlxvar.h
index 58223cb..edb1a85 100644
--- a/sys/dev/mlx/mlxvar.h
+++ b/sys/dev/mlx/mlxvar.h
@@ -77,7 +77,7 @@ struct mlx_sysdrive
*/
struct mlx_command
{
- TAILQ_ENTRY(struct mlx_command) mc_link; /* list linkage */
+ TAILQ_ENTRY(mlx_command) mc_link; /* list linkage */
struct mlx_softc *mc_sc; /* controller that owns us */
u_int8_t mc_slot; /* command slot we occupy */
@@ -128,8 +128,8 @@ struct mlx_softc
#define MLX_FEAT_PAUSEWORKS (1<<0) /* channel pause works as expected */
/* controller queues and arrays */
- TAILQ_HEAD(, struct mlx_command) mlx_freecmds; /* command structures available for reuse */
- TAILQ_HEAD(, struct mlx_command) mlx_work; /* active commands */
+ TAILQ_HEAD(, mlx_command) mlx_freecmds; /* command structures available for reuse */
+ TAILQ_HEAD(, mlx_command) mlx_work; /* active commands */
struct mlx_command *mlx_busycmd[MLX_NSLOTS]; /* busy commands */
int mlx_busycmds; /* count of busy commands */
struct mlx_sysdrive mlx_sysdrive[MLX_MAXDRIVES]; /* system drives */
diff --git a/sys/dev/pccard/pccardvar.h b/sys/dev/pccard/pccardvar.h
index 58398c4..19e9434 100644
--- a/sys/dev/pccard/pccardvar.h
+++ b/sys/dev/pccard/pccardvar.h
@@ -103,7 +103,7 @@ struct pccard_config_entry {
u_long hostaddr;
} memspace[2]; /* XXX this could be as high as 8 */
int maxtwins;
- STAILQ_ENTRY(struct pccard_config_entry) cfe_list;
+ STAILQ_ENTRY(pccard_config_entry) cfe_list;
};
struct pccard_function {
@@ -115,8 +115,8 @@ struct pccard_function {
u_long ccr_mask;
struct resource *ccr_res;
int ccr_rid;
- STAILQ_HEAD(, struct pccard_config_entry) cfe_head;
- STAILQ_ENTRY(struct pccard_function) pf_list;
+ STAILQ_HEAD(, pccard_config_entry) cfe_head;
+ STAILQ_ENTRY(pccard_function) pf_list;
/* run-time state */
struct pccard_softc *sc;
struct pccard_config_entry *cfe;
@@ -154,7 +154,7 @@ struct pccard_card {
#define PCCARD_PRODUCT_INVALID -1
u_int16_t error;
#define PCCARD_CIS_INVALID { NULL, NULL, NULL, NULL }
- STAILQ_HEAD(, struct pccard_function) pf_head;
+ STAILQ_HEAD(, pccard_function) pf_head;
};
#define PCCARD_MEM_ATTR 1
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 081cd54..aa58b8a 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -87,13 +87,13 @@ struct pci_quirk pci_quirks[] = {
#define PCI_MAPPORT 0x04 /* port map */
struct pci_devinfo {
- STAILQ_ENTRY(struct pci_devinfo) pci_links;
+ STAILQ_ENTRY(pci_devinfo) pci_links;
struct resource_list resources;
pcicfgregs cfg;
struct pci_conf conf;
};
-static STAILQ_HEAD(devlist, struct pci_devinfo) pci_devq;
+static STAILQ_HEAD(devlist, pci_devinfo) pci_devq;
u_int32_t pci_numdevs = 0;
static u_int32_t pci_generation = 0;
@@ -400,7 +400,7 @@ pci_freecfg(struct pci_devinfo *dinfo)
if (dinfo->cfg.map != NULL)
free(dinfo->cfg.map, M_DEVBUF);
/* XXX this hasn't been tested */
- STAILQ_REMOVE(devlist_head, dinfo, struct pci_devinfo, pci_links);
+ STAILQ_REMOVE(devlist_head, dinfo, pci_devinfo, pci_links);
free(dinfo, M_DEVBUF);
/* increment the generation count */
diff --git a/sys/dev/pcic/i82365var.h b/sys/dev/pcic/i82365var.h
index 55eaa07..5a0c723 100644
--- a/sys/dev/pcic/i82365var.h
+++ b/sys/dev/pcic/i82365var.h
@@ -37,7 +37,7 @@
struct proc;
struct pcic_event {
- STAILQ_ENTRY(struct pcic_event) pe_q;
+ STAILQ_ENTRY(pcic_event) pe_q;
int pe_type;
};
@@ -65,7 +65,7 @@ struct pcic_handle {
int shutdown;
struct proc *event_thread;
- STAILQ_HEAD(, struct pcic_event) events;
+ STAILQ_HEAD(, pcic_event) events;
};
#define PCIC_FLAG_SOCKETP 0x0001
diff --git a/sys/dev/sk/if_skreg.h b/sys/dev/sk/if_skreg.h
index 2a5afc0..af17c1c 100644
--- a/sys/dev/sk/if_skreg.h
+++ b/sys/dev/sk/if_skreg.h
@@ -1129,7 +1129,7 @@ struct sk_jslot {
struct sk_jpool_entry {
int slot;
- SLIST_ENTRY(struct sk_jpool_entry) jpool_entries;
+ SLIST_ENTRY(sk_jpool_entry) jpool_entries;
};
struct sk_chain {
@@ -1209,8 +1209,8 @@ struct sk_if_softc {
struct sk_softc *sk_softc; /* parent controller */
int sk_tx_bmu; /* TX BMU register */
int sk_if_flags;
- SLIST_HEAD(__sk_jfreehead, struct sk_jpool_entry) sk_jfree_listhead;
- SLIST_HEAD(__sk_jinusehead, struct sk_jpool_entry) sk_jinuse_listhead;
+ SLIST_HEAD(__sk_jfreehead, sk_jpool_entry) sk_jfree_listhead;
+ SLIST_HEAD(__sk_jinusehead, sk_jpool_entry) sk_jinuse_listhead;
};
#define SK_MAXUNIT 256
diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c
index dd6ed9b..e8dcc6e 100644
--- a/sys/dev/sound/pci/emu10k1.c
+++ b/sys/dev/sound/pci/emu10k1.c
@@ -44,7 +44,7 @@
#undef EMUDEBUG
struct emu_memblk {
- SLIST_ENTRY(struct emu_memblk) link;
+ SLIST_ENTRY(emu_memblk) link;
void *buf;
u_int32_t pte_start, pte_size;
};
@@ -53,7 +53,7 @@ struct emu_mem {
u_int8_t bmap[MAXPAGES / 8];
u_int32_t *ptb_pages;
void *silent_page;
- SLIST_HEAD(, struct emu_memblk) blocks;
+ SLIST_HEAD(, emu_memblk) blocks;
};
struct emu_voice {
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c
index 472eb19..c0f6f1c 100644
--- a/sys/dev/streams/streams.c
+++ b/sys/dev/streams/streams.c
@@ -71,10 +71,10 @@ struct svr4_sockcache_entry {
struct sockaddr_un sock;/* Pathname for the socket */
dev_t dev; /* Device where the socket lives on */
ino_t ino; /* Inode where the socket lives on */
- TAILQ_ENTRY(struct svr4_sockcache_entry) entries;
+ TAILQ_ENTRY(svr4_sockcache_entry) entries;
};
-TAILQ_HEAD(svr4_sockcache_head, struct svr4_sockcache_entry) svr4_head;
+TAILQ_HEAD(svr4_sockcache_head, svr4_sockcache_entry) svr4_head;
/* Initialization flag (set/queried by svr4_mod LKM) */
int svr4_str_initialized = 0;
diff --git a/sys/dev/syscons/scterm.c b/sys/dev/syscons/scterm.c
index f174d10..99fad98 100644
--- a/sys/dev/syscons/scterm.c
+++ b/sys/dev/syscons/scterm.c
@@ -64,7 +64,7 @@ sc_clear_screen(scr_stat *scp)
/* terminal emulator manager routines */
-static LIST_HEAD(, struct sc_term_sw) sc_term_list =
+static LIST_HEAD(, sc_term_sw) sc_term_list =
LIST_HEAD_INITIALIZER(sc_term_list);
int
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c
index 8eda6e6..8af13a0 100644
--- a/sys/dev/syscons/scvidctl.c
+++ b/sys/dev/syscons/scvidctl.c
@@ -768,7 +768,7 @@ sc_vid_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p)
return ENOIOCTL;
}
-static LIST_HEAD(, struct sc_renderer) sc_rndr_list =
+static LIST_HEAD(, sc_renderer) sc_rndr_list =
LIST_HEAD_INITIALIZER(sc_rndr_list);
int
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h
index 4b98404..0c1d8e4 100644
--- a/sys/dev/syscons/syscons.h
+++ b/sys/dev/syscons/syscons.h
@@ -325,7 +325,7 @@ typedef void sc_term_notify_t(scr_stat *scp, int event);
typedef int sc_term_input_t(scr_stat *scp, int c, struct tty *tp);
typedef struct sc_term_sw {
- LIST_ENTRY(struct sc_term_sw) link;
+ LIST_ENTRY(sc_term_sw) link;
char *te_name; /* name of the emulator */
char *te_desc; /* description */
char *te_renderer; /* matching renderer */
@@ -395,7 +395,7 @@ typedef struct sc_renderer {
char *name;
int mode;
sc_rndr_sw_t *rndrsw;
- LIST_ENTRY(struct sc_renderer) link;
+ LIST_ENTRY(sc_renderer) link;
} sc_renderer_t;
extern struct linker_set scrndr_set;
diff --git a/sys/dev/ti/if_tireg.h b/sys/dev/ti/if_tireg.h
index fd6cb00..5210ffa 100644
--- a/sys/dev/ti/if_tireg.h
+++ b/sys/dev/ti/if_tireg.h
@@ -1103,12 +1103,12 @@ struct ti_type {
struct ti_mc_entry {
struct ether_addr mc_addr;
- SLIST_ENTRY(struct ti_mc_entry) mc_entries;
+ SLIST_ENTRY(ti_mc_entry) mc_entries;
};
struct ti_jpool_entry {
int slot;
- SLIST_ENTRY(struct ti_jpool_entry) jpool_entries;
+ SLIST_ENTRY(ti_jpool_entry) jpool_entries;
};
struct ti_softc {
@@ -1135,9 +1135,9 @@ struct ti_softc {
u_int16_t ti_std; /* current std ring head */
u_int16_t ti_mini; /* current mini ring head */
u_int16_t ti_jumbo; /* current jumo ring head */
- SLIST_HEAD(__ti_mchead, struct ti_mc_entry) ti_mc_listhead;
- SLIST_HEAD(__ti_jfreehead, struct ti_jpool_entry) ti_jfree_listhead;
- SLIST_HEAD(__ti_jinusehead, struct ti_jpool_entry) ti_jinuse_listhead;
+ SLIST_HEAD(__ti_mchead, ti_mc_entry) ti_mc_listhead;
+ SLIST_HEAD(__ti_jfreehead, ti_jpool_entry) ti_jfree_listhead;
+ SLIST_HEAD(__ti_jinusehead, ti_jpool_entry) ti_jinuse_listhead;
u_int32_t ti_stat_ticks;
u_int32_t ti_rx_coal_ticks;
u_int32_t ti_tx_coal_ticks;
diff --git a/sys/dev/usb/ohcivar.h b/sys/dev/usb/ohcivar.h
index 11c3394..8d37778 100644
--- a/sys/dev/usb/ohcivar.h
+++ b/sys/dev/usb/ohcivar.h
@@ -51,7 +51,7 @@ typedef struct ohci_soft_td {
struct ohci_soft_td *nexttd; /* mirrors nexttd in TD */
struct ohci_soft_td *dnext; /* next in done list */
ohci_physaddr_t physaddr;
- LIST_ENTRY(struct ohci_soft_td) hnext;
+ LIST_ENTRY(ohci_soft_td) hnext;
usbd_xfer_handle xfer;
u_int16_t len;
u_int16_t flags;
@@ -97,7 +97,7 @@ typedef struct ohci_softc {
ohci_soft_ed_t *sc_ctrl_head;
ohci_soft_ed_t *sc_bulk_head;
- LIST_HEAD(, struct ohci_soft_td) sc_hash_tds[OHCI_HASH_SIZE];
+ LIST_HEAD(, ohci_soft_td) sc_hash_tds[OHCI_HASH_SIZE];
int sc_noport;
u_int8_t sc_addr; /* device address */
@@ -107,7 +107,7 @@ typedef struct ohci_softc {
ohci_soft_td_t *sc_freetds;
ohci_soft_itd_t *sc_freeitds;
- SIMPLEQ_HEAD(, struct usbd_xfer) sc_free_xfers; /* free xfers */
+ SIMPLEQ_HEAD(, usbd_xfer) sc_free_xfers; /* free xfers */
usbd_xfer_handle sc_intrxfer;
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 62fdb9f..f266570 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -147,7 +147,7 @@ struct uhci_pipe {
* The uhci_intr_info free list can be global since they contain
* no dma specific data. The other free lists do.
*/
-LIST_HEAD(, struct uhci_intr_info) uhci_ii_free;
+LIST_HEAD(, uhci_intr_info) uhci_ii_free;
Static void uhci_busreset __P((uhci_softc_t *));
Static usbd_status uhci_run __P((uhci_softc_t *, int run));
diff --git a/sys/dev/usb/uhcivar.h b/sys/dev/usb/uhcivar.h
index bea26bc..303a429 100644
--- a/sys/dev/usb/uhcivar.h
+++ b/sys/dev/usb/uhcivar.h
@@ -73,7 +73,7 @@ typedef struct uhci_intr_info {
usbd_xfer_handle xfer;
uhci_soft_td_t *stdstart;
uhci_soft_td_t *stdend;
- LIST_ENTRY(struct uhci_intr_info) list;
+ LIST_ENTRY(uhci_intr_info) list;
#if defined(__FreeBSD__)
struct callout_handle timeout_handle;
#endif /* defined(__FreeBSD__) */
@@ -149,7 +149,7 @@ typedef struct uhci_softc {
uhci_soft_td_t *sc_freetds; /* TD free list */
uhci_soft_qh_t *sc_freeqhs; /* QH free list */
- SIMPLEQ_HEAD(, struct usbd_xfer) sc_free_xfers; /* free xfers */
+ SIMPLEQ_HEAD(, usbd_xfer) sc_free_xfers; /* free xfers */
u_int8_t sc_addr; /* device address */
u_int8_t sc_conf; /* device configuration */
@@ -157,7 +157,7 @@ typedef struct uhci_softc {
char sc_isreset;
char sc_suspend;
- LIST_HEAD(, struct uhci_intr_info) sc_intrhead;
+ LIST_HEAD(, uhci_intr_info) sc_intrhead;
/* Info for the root hub interrupt channel. */
int sc_ival; /* time between root hug intrs */
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 43c2351..b623cf2 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -156,9 +156,9 @@ Static void usb_event_thread __P((void *));
#define USB_MAX_EVENTS 50
struct usb_event_q {
struct usb_event ue;
- SIMPLEQ_ENTRY(struct usb_event_q) next;
+ SIMPLEQ_ENTRY(usb_event_q) next;
};
-Static SIMPLEQ_HEAD(, struct usb_event_q) usb_events =
+Static SIMPLEQ_HEAD(, usb_event_q) usb_events =
SIMPLEQ_HEAD_INITIALIZER(usb_events);
Static int usb_nevents = 0;
Static struct selinfo usb_selevent;
diff --git a/sys/dev/usb/usb_mem.h b/sys/dev/usb/usb_mem.h
index 37c65ba..f74e9c4 100644
--- a/sys/dev/usb/usb_mem.h
+++ b/sys/dev/usb/usb_mem.h
@@ -48,7 +48,7 @@ typedef struct usb_dma_block {
size_t size;
size_t align;
int fullblock;
- LIST_ENTRY(struct usb_dma_block) next;
+ LIST_ENTRY(usb_dma_block) next;
} usb_dma_block_t;
#define DMAADDR(dma, offset) ((dma)->block->segs[0].ds_addr + (dma)->offs + (offset))
diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h
index ca1fae6..9d8ca8a 100644
--- a/sys/dev/usb/usbdivar.h
+++ b/sys/dev/usb/usbdivar.h
@@ -146,7 +146,7 @@ struct usbd_interface {
int altindex;
struct usbd_endpoint *endpoints;
void *priv;
- LIST_HEAD(, struct usbd_pipe) pipes;
+ LIST_HEAD(, usbd_pipe) pipes;
};
struct usbd_pipe {
@@ -155,8 +155,8 @@ struct usbd_pipe {
struct usbd_endpoint *endpoint;
int refcnt;
char running;
- SIMPLEQ_HEAD(, struct usbd_xfer) queue;
- LIST_ENTRY(struct usbd_pipe) next;
+ SIMPLEQ_HEAD(, usbd_xfer) queue;
+ LIST_ENTRY(usbd_pipe) next;
usbd_xfer_handle intrxfer; /* used for repeating requests */
char repeat;
@@ -194,7 +194,7 @@ struct usbd_xfer {
#define URQ_AUTO_DMABUF 0x10
#define URQ_DEV_DMABUF 0x20
- SIMPLEQ_ENTRY(struct usbd_xfer) next;
+ SIMPLEQ_ENTRY(usbd_xfer) next;
void *hcpriv; /* private use by the HC driver */
int hcprivint;
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index 95b4e46..29f4e7a 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -137,10 +137,10 @@ struct vn_softc {
struct ucred *sc_cred; /* credentials */
int sc_maxactive; /* max # of active requests */
u_long sc_options; /* options */
- SLIST_ENTRY(struct vn_softc) sc_list;
+ SLIST_ENTRY(vn_softc) sc_list;
};
-static SLIST_HEAD(, struct vn_softc) vn_list;
+static SLIST_HEAD(, vn_softc) vn_list;
/* sc_flags */
#define VNF_INITED 0x01
diff --git a/sys/fs/fdescfs/fdesc.h b/sys/fs/fdescfs/fdesc.h
index cbd45fa..60b6006 100644
--- a/sys/fs/fdescfs/fdesc.h
+++ b/sys/fs/fdescfs/fdesc.h
@@ -52,7 +52,7 @@ typedef enum {
} fdntype;
struct fdescnode {
- LIST_ENTRY(struct fdescnode) fd_hash; /* Hash list */
+ LIST_ENTRY(fdescnode) fd_hash; /* Hash list */
struct vnode *fd_vnode; /* Back ptr to vnode */
fdntype fd_type; /* Type of this node */
unsigned fd_fd; /* Fd to be dup'ed */
diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c
index 0f00f1c..368d844 100644
--- a/sys/fs/fdescfs/fdesc_vnops.c
+++ b/sys/fs/fdescfs/fdesc_vnops.c
@@ -67,7 +67,7 @@ static vop_t **fdesc_vnodeop_p;
#define NFDCACHE 4
#define FD_NHASH(ix) \
(&fdhashtbl[(ix) & fdhash])
-static LIST_HEAD(fdhashhead, struct fdescnode) *fdhashtbl;
+static LIST_HEAD(fdhashhead, fdescnode) *fdhashtbl;
static u_long fdhash;
static int fdesc_badop __P((void));
diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c
index a1b82c9..5bd13a7 100644
--- a/sys/fs/fifofs/fifo_vnops.c
+++ b/sys/fs/fifofs/fifo_vnops.c
@@ -372,7 +372,7 @@ filt_fifordetach(struct knote *kn)
struct vnode *vn = (struct vnode *)kn->kn_fp->f_data;
struct socket *so = (struct socket *)vn->v_fifoinfo->fi_readsock;
- SLIST_REMOVE(&so->so_rcv.sb_sel.si_note, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&so->so_rcv.sb_sel.si_note, kn, knote, kn_selnext);
if (SLIST_EMPTY(&so->so_rcv.sb_sel.si_note))
so->so_rcv.sb_flags &= ~SB_KNOTE;
}
@@ -409,7 +409,7 @@ filt_fifowdetach(struct knote *kn)
struct vnode *vn = (struct vnode *)kn->kn_fp->f_data;
struct socket *so = (struct socket *)vn->v_fifoinfo->fi_readsock;
- SLIST_REMOVE(&so->so_snd.sb_sel.si_note, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&so->so_snd.sb_sel.si_note, kn, knote, kn_selnext);
if (SLIST_EMPTY(&so->so_snd.sb_sel.si_note))
so->so_snd.sb_flags &= ~SB_KNOTE;
}
diff --git a/sys/fs/hpfs/hpfs.h b/sys/fs/hpfs/hpfs.h
index bb88689..7c880b2 100644
--- a/sys/fs/hpfs/hpfs.h
+++ b/sys/fs/hpfs/hpfs.h
@@ -339,7 +339,7 @@ struct hpfsnode {
struct simplelock h_interlock;
#endif
- LIST_ENTRY(struct hpfsnode) h_hash;
+ LIST_ENTRY(hpfsnode) h_hash;
struct hpfsmount *h_hpmp;
struct fnode h_fn;
diff --git a/sys/fs/hpfs/hpfs_hash.c b/sys/fs/hpfs/hpfs_hash.c
index 0d70eb7..a948ade 100644
--- a/sys/fs/hpfs/hpfs_hash.c
+++ b/sys/fs/hpfs/hpfs_hash.c
@@ -50,7 +50,7 @@ MALLOC_DEFINE(M_HPFSHASH, "HPFS hash", "HPFS node hash tables");
/*
* Structures associated with hpfsnode cacheing.
*/
-static LIST_HEAD(hphashhead, struct hpfsnode) *hpfs_hphashtbl;
+static LIST_HEAD(hphashhead, hpfsnode) *hpfs_hphashtbl;
static u_long hpfs_hphash; /* size of hash table - 1 */
#define HPNOHASH(dev, lsn) (&hpfs_hphashtbl[(minor(dev) + (lsn)) & hpfs_hphash])
#ifndef NULL_SIMPLELOCKS
diff --git a/sys/fs/ntfs/ntfs_ihash.c b/sys/fs/ntfs/ntfs_ihash.c
index 0ddf074..0deecff 100644
--- a/sys/fs/ntfs/ntfs_ihash.c
+++ b/sys/fs/ntfs/ntfs_ihash.c
@@ -54,7 +54,7 @@ MALLOC_DEFINE(M_NTFSNTHASH, "NTFS nthash", "NTFS ntnode hash tables");
/*
* Structures associated with inode cacheing.
*/
-static LIST_HEAD(nthashhead, struct ntnode) *ntfs_nthashtbl;
+static LIST_HEAD(nthashhead, ntnode) *ntfs_nthashtbl;
static u_long ntfs_nthash; /* size of hash table - 1 */
#define NTNOHASH(device, inum) (&ntfs_nthashtbl[(minor(device) + (inum)) & ntfs_nthash])
#ifndef NULL_SIMPLELOCKS
diff --git a/sys/fs/ntfs/ntfs_inode.h b/sys/fs/ntfs/ntfs_inode.h
index a14e008..a86d5f7 100644
--- a/sys/fs/ntfs/ntfs_inode.h
+++ b/sys/fs/ntfs/ntfs_inode.h
@@ -60,7 +60,7 @@ struct ntnode {
struct vnode *i_devvp; /* vnode of blk dev we live on */
dev_t i_dev; /* Device associated with the inode. */
- LIST_ENTRY(struct ntnode) i_hash;
+ LIST_ENTRY(ntnode) i_hash;
struct ntnode *i_next;
struct ntnode **i_prev;
struct ntfsmount *i_mp;
@@ -72,8 +72,8 @@ struct ntnode {
struct simplelock i_interlock;
int i_usecount;
- LIST_HEAD(, struct fnode) i_fnlist;
- LIST_HEAD(, struct ntvattr) i_valist;
+ LIST_HEAD(,fnode) i_fnlist;
+ LIST_HEAD(,ntvattr) i_valist;
long i_nlink; /* MFR */
ino_t i_mainrec; /* MFR */
@@ -88,7 +88,7 @@ struct fnode {
struct lock f_lock; /* fnode lock >Keep this first< */
#endif
- LIST_ENTRY(struct fnode) f_fnlist;
+ LIST_ENTRY(fnode) f_fnlist;
struct vnode *f_vp; /* Associatied vnode */
struct ntnode *f_ip; /* Associated ntnode */
u_long f_flag;
diff --git a/sys/fs/ntfs/ntfs_subr.h b/sys/fs/ntfs/ntfs_subr.h
index f172c56..a0cda50 100644
--- a/sys/fs/ntfs/ntfs_subr.h
+++ b/sys/fs/ntfs/ntfs_subr.h
@@ -32,7 +32,7 @@
#define VA_PRELOADED 0x0002
struct ntvattr {
- LIST_ENTRY(struct ntvattr) va_list;
+ LIST_ENTRY(ntvattr) va_list;
u_int32_t va_vflag;
struct vnode *va_vp;
diff --git a/sys/fs/nullfs/null.h b/sys/fs/nullfs/null.h
index 8747230..2b7ed51 100644
--- a/sys/fs/nullfs/null.h
+++ b/sys/fs/nullfs/null.h
@@ -52,7 +52,7 @@ struct null_mount {
* A cache of vnode references
*/
struct null_node {
- LIST_ENTRY(struct null_node) null_hash; /* Hash list */
+ LIST_ENTRY(null_node) null_hash; /* Hash list */
struct vnode *null_lowervp; /* VREFed once */
struct vnode *null_vnode; /* Back pointer */
};
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c
index 7c4f669..ad37a1e 100644
--- a/sys/fs/nullfs/null_subr.c
+++ b/sys/fs/nullfs/null_subr.c
@@ -59,7 +59,7 @@
#define NULL_NHASH(vp) \
(&null_node_hashtbl[(((uintptr_t)vp)>>LOG2_SIZEVNODE) & null_node_hash])
-static LIST_HEAD(null_node_hashhead, struct null_node) *null_node_hashtbl;
+static LIST_HEAD(null_node_hashhead, null_node) *null_node_hashtbl;
static u_long null_node_hash;
static int null_node_alloc __P((struct mount *mp, struct vnode *lowervp,
diff --git a/sys/fs/nwfs/nwfs_node.c b/sys/fs/nwfs/nwfs_node.c
index f632a1e..25d9225 100644
--- a/sys/fs/nwfs/nwfs_node.c
+++ b/sys/fs/nwfs/nwfs_node.c
@@ -59,7 +59,7 @@
extern vop_t **nwfs_vnodeop_p;
-static LIST_HEAD(nwnode_hash_head, struct nwnode) *nwhashtbl;
+static LIST_HEAD(nwnode_hash_head,nwnode) *nwhashtbl;
static u_long nwnodehash;
static int nwhashlock = 0;
diff --git a/sys/fs/nwfs/nwfs_node.h b/sys/fs/nwfs/nwfs_node.h
index 2755013..3777679 100644
--- a/sys/fs/nwfs/nwfs_node.h
+++ b/sys/fs/nwfs/nwfs_node.h
@@ -45,7 +45,7 @@
#define NVOLUME 0x0010 /* vnode references a volume */
struct nwnode {
- LIST_ENTRY(struct nwnode) n_hash;
+ LIST_ENTRY(nwnode) n_hash;
struct vnode *n_vnode;
struct vattr n_vattr;
struct nwmount *n_mount;
diff --git a/sys/fs/umapfs/umap.h b/sys/fs/umapfs/umap.h
index 0964614..eb562ed 100644
--- a/sys/fs/umapfs/umap.h
+++ b/sys/fs/umapfs/umap.h
@@ -67,7 +67,7 @@ struct umap_mount {
* A cache of vnode references
*/
struct umap_node {
- LIST_ENTRY(struct umap_node) umap_hash; /* Hash list */
+ LIST_ENTRY(umap_node) umap_hash; /* Hash list */
struct vnode *umap_lowervp; /* Aliased vnode - VREFed once */
struct vnode *umap_vnode; /* Back pointer to vnode/umap_node */
};
diff --git a/sys/fs/umapfs/umap_subr.c b/sys/fs/umapfs/umap_subr.c
index 0ec9a43..6f08513 100644
--- a/sys/fs/umapfs/umap_subr.c
+++ b/sys/fs/umapfs/umap_subr.c
@@ -60,7 +60,7 @@
#define UMAP_NHASH(vp) \
(&umap_node_hashtbl \
[((uintptr_t)(void *)(vp) >> LOG2_SIZEVNODE) & umap_node_hash])
-static LIST_HEAD(umap_node_hashhead, struct umap_node) *umap_node_hashtbl;
+static LIST_HEAD(umap_node_hashhead, umap_node) *umap_node_hashtbl;
static u_long umap_node_hash;
static u_long umap_findid __P((u_long id, u_long map[][2], int nentries));
diff --git a/sys/fs/unionfs/union.h b/sys/fs/unionfs/union.h
index 65be0ab..a720d41 100644
--- a/sys/fs/unionfs/union.h
+++ b/sys/fs/unionfs/union.h
@@ -79,7 +79,7 @@ struct union_mount {
*/
struct union_node {
struct lock un_lock;
- LIST_ENTRY(struct union_node) un_cache; /* Hash chain */
+ LIST_ENTRY(union_node) un_cache; /* Hash chain */
struct vnode *un_vnode; /* Back pointer */
struct vnode *un_uppervp; /* overlaying object */
struct vnode *un_lowervp; /* underlying object */
diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c
index 4d4c2fa..6b88bef 100644
--- a/sys/fs/unionfs/union_subr.c
+++ b/sys/fs/unionfs/union_subr.c
@@ -67,7 +67,7 @@ extern int union_init __P((void));
#define UNION_HASH(u, l) \
(((((uintptr_t) (u)) + ((uintptr_t) l)) >> 8) & (NHASH-1))
-static LIST_HEAD(unhead, struct union_node) unhead[NHASH];
+static LIST_HEAD(unhead, union_node) unhead[NHASH];
static int unvplock[NHASH];
static void union_dircache_r __P((struct vnode *vp, struct vnode ***vppp,
diff --git a/sys/gnu/ext2fs/ext2_ihash.c b/sys/gnu/ext2fs/ext2_ihash.c
index 39e0c11..0a7c7d5 100644
--- a/sys/gnu/ext2fs/ext2_ihash.c
+++ b/sys/gnu/ext2fs/ext2_ihash.c
@@ -50,7 +50,7 @@ static MALLOC_DEFINE(M_UFSIHASH, "UFS ihash", "UFS Inode hash tables");
/*
* Structures associated with inode cacheing.
*/
-static LIST_HEAD(ihashhead, struct inode) *ihashtbl;
+static LIST_HEAD(ihashhead, inode) *ihashtbl;
static u_long ihash; /* size of hash table - 1 */
#define INOHASH(device, inum) (&ihashtbl[(minor(device) + (inum)) & ihash])
#ifndef NULL_SIMPLELOCKS
diff --git a/sys/gnu/ext2fs/inode.h b/sys/gnu/ext2fs/inode.h
index 206babd..83960b0 100644
--- a/sys/gnu/ext2fs/inode.h
+++ b/sys/gnu/ext2fs/inode.h
@@ -67,7 +67,7 @@ typedef long ufs_lbn_t;
*/
struct inode {
struct lock i_lock; /* Inode lock. >Keep this first< */
- LIST_ENTRY(struct inode) i_hash;/* Hash chain. */
+ LIST_ENTRY(inode) i_hash;/* Hash chain. */
struct vnode *i_vnode;/* Vnode associated with this inode. */
struct vnode *i_devvp;/* Vnode for block I/O. */
u_int32_t i_flag; /* flags, see below */
diff --git a/sys/gnu/fs/ext2fs/inode.h b/sys/gnu/fs/ext2fs/inode.h
index 206babd..83960b0 100644
--- a/sys/gnu/fs/ext2fs/inode.h
+++ b/sys/gnu/fs/ext2fs/inode.h
@@ -67,7 +67,7 @@ typedef long ufs_lbn_t;
*/
struct inode {
struct lock i_lock; /* Inode lock. >Keep this first< */
- LIST_ENTRY(struct inode) i_hash;/* Hash chain. */
+ LIST_ENTRY(inode) i_hash;/* Hash chain. */
struct vnode *i_vnode;/* Vnode associated with this inode. */
struct vnode *i_devvp;/* Vnode for block I/O. */
u_int32_t i_flag; /* flags, see below */
diff --git a/sys/i386/i386/busdma_machdep.c b/sys/i386/i386/busdma_machdep.c
index 81476f6..0868b7c 100644
--- a/sys/i386/i386/busdma_machdep.c
+++ b/sys/i386/i386/busdma_machdep.c
@@ -61,12 +61,12 @@ struct bounce_page {
bus_addr_t busaddr; /* Physical address */
vm_offset_t datavaddr; /* kva of client data */
bus_size_t datacount; /* client data count */
- STAILQ_ENTRY(struct bounce_page) links;
+ STAILQ_ENTRY(bounce_page) links;
};
int busdma_swi_pending;
-static STAILQ_HEAD(bp_list, struct bounce_page) bounce_page_list;
+static STAILQ_HEAD(bp_list, bounce_page) bounce_page_list;
static int free_bpages;
static int reserved_bpages;
static int active_bpages;
@@ -82,11 +82,11 @@ struct bus_dmamap {
bus_size_t buflen; /* unmapped buffer length */
bus_dmamap_callback_t *callback;
void *callback_arg;
- STAILQ_ENTRY(struct bus_dmamap) links;
+ STAILQ_ENTRY(bus_dmamap) links;
};
-static STAILQ_HEAD(, struct bus_dmamap) bounce_map_waitinglist;
-static STAILQ_HEAD(, struct bus_dmamap) bounce_map_callbacklist;
+static STAILQ_HEAD(, bus_dmamap) bounce_map_waitinglist;
+static STAILQ_HEAD(, bus_dmamap) bounce_map_callbacklist;
static struct bus_dmamap nobounce_dmamap;
static int alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages);
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h
index 054db2b..813f2ae 100644
--- a/sys/i386/include/pmap.h
+++ b/sys/i386/include/pmap.h
@@ -191,13 +191,13 @@ struct pv_entry;
struct md_page {
int pv_list_count;
- TAILQ_HEAD(,struct pv_entry) pv_list;
+ TAILQ_HEAD(,pv_entry) pv_list;
};
struct pmap {
pd_entry_t *pm_pdir; /* KVA of page directory */
vm_object_t pm_pteobj; /* Container for pte's */
- TAILQ_HEAD(,struct pv_entry) pm_pvlist;/* list of mappings in pmap */
+ TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */
int pm_count; /* reference count */
int pm_active; /* active on cpus */
struct pmap_statistics pm_stats; /* pmap statistics */
@@ -219,8 +219,8 @@ extern pmap_t kernel_pmap;
typedef struct pv_entry {
pmap_t pv_pmap; /* pmap where mapping lies */
vm_offset_t pv_va; /* virtual address for mapping */
- TAILQ_ENTRY(struct pv_entry) pv_list;
- TAILQ_ENTRY(struct pv_entry) pv_plist;
+ TAILQ_ENTRY(pv_entry) pv_list;
+ TAILQ_ENTRY(pv_entry) pv_plist;
vm_page_t pv_ptem; /* VM page for pte */
} *pv_entry_t;
diff --git a/sys/i386/isa/bs/bsvar.h b/sys/i386/isa/bs/bsvar.h
index 1914eb1..6267c31 100644
--- a/sys/i386/isa/bs/bsvar.h
+++ b/sys/i386/isa/bs/bsvar.h
@@ -261,7 +261,7 @@ struct sc_p {
#define BSCFLAGSMASK (0xffff)
struct bsccb {
- TAILQ_ENTRY(struct bsccb) ccb_chain;
+ TAILQ_ENTRY(bsccb) ccb_chain;
union ccb *ccb; /* upper drivers info */
@@ -296,9 +296,9 @@ GENERIC_CCB_ASSERT(bs, bsccb)
/* target info */
struct targ_info {
-/*0*/ TAILQ_ENTRY(struct targ_info) ti_tchain; /* targ_info link */
+/*0*/ TAILQ_ENTRY(targ_info) ti_tchain; /* targ_info link */
-/*4*/ TAILQ_ENTRY(struct targ_info) ti_wchain; /* wait link */
+/*4*/ TAILQ_ENTRY(targ_info) ti_wchain; /* wait link */
/*8*/ struct bs_softc *ti_bsc; /* our controller */
/*c*/ u_int ti_id; /* scsi id */
@@ -364,7 +364,7 @@ struct targ_info {
struct scsi_sense_data sense;
};
-TAILQ_HEAD(titab, struct targ_info);
+TAILQ_HEAD(titab, targ_info);
struct bshw;
struct bs_softc {
diff --git a/sys/i386/isa/ccbque.h b/sys/i386/isa/ccbque.h
index 088252a..cb6bebe 100644
--- a/sys/i386/isa/ccbque.h
+++ b/sys/i386/isa/ccbque.h
@@ -41,7 +41,7 @@
/* (I) structure and prototype */
#define GENERIC_CCB_ASSERT(DEV, CCBTYPE) \
-TAILQ_HEAD(CCBTYPE##tab, struct CCBTYPE); \
+TAILQ_HEAD(CCBTYPE##tab, CCBTYPE); \
struct CCBTYPE##que { \
struct CCBTYPE##tab CCBTYPE##tab; \
int count; \
diff --git a/sys/i386/isa/loran.c b/sys/i386/isa/loran.c
index 0da59b5..b4c5daa 100644
--- a/sys/i386/isa/loran.c
+++ b/sys/i386/isa/loran.c
@@ -33,7 +33,7 @@
#include <i386/isa/isa_device.h>
#endif /* _KERNEL */
-typedef TAILQ_HEAD(, struct datapoint) dphead_t;
+typedef TAILQ_HEAD(, datapoint) dphead_t;
struct datapoint {
/* Fields used by kernel */
@@ -48,7 +48,7 @@ struct datapoint {
u_int qsig;
u_int ssig;
u_int64_t epoch;
- TAILQ_ENTRY(struct datapoint) list;
+ TAILQ_ENTRY(datapoint) list;
int vco;
int bounce;
pid_t pid;
diff --git a/sys/i386/linux/linux_ioctl.c b/sys/i386/linux/linux_ioctl.c
index 609baae..582770f 100644
--- a/sys/i386/linux/linux_ioctl.c
+++ b/sys/i386/linux/linux_ioctl.c
@@ -85,12 +85,12 @@ DATA_SET(linux_ioctl_handler_set, termio_handler);
struct handler_element
{
- TAILQ_ENTRY(struct handler_element) list;
+ TAILQ_ENTRY(handler_element) list;
int (*func)(struct proc *, struct linux_ioctl_args *);
int low, high, span;
};
-static TAILQ_HEAD(, struct handler_element) handlers =
+static TAILQ_HEAD(, handler_element) handlers =
TAILQ_HEAD_INITIALIZER(handlers);
static int
diff --git a/sys/isa/isa_common.h b/sys/isa/isa_common.h
index 13770de..70b8b33 100644
--- a/sys/isa/isa_common.h
+++ b/sys/isa/isa_common.h
@@ -38,9 +38,9 @@ MALLOC_DECLARE(M_ISADEV);
/*
* PNP configurations are kept in a tailq.
*/
-TAILQ_HEAD(isa_config_list, struct isa_config_entry);
+TAILQ_HEAD(isa_config_list, isa_config_entry);
struct isa_config_entry {
- TAILQ_ENTRY(struct isa_config_entry) ice_link;
+ TAILQ_ENTRY(isa_config_entry) ice_link;
int ice_priority;
struct isa_config ice_config;
};
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index a7d6412..d6116f7 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -64,9 +64,9 @@ MALLOC_DEFINE(M_DEVT, "dev_t", "dev_t storage");
static struct specinfo devt_stash[DEVT_STASH];
-static LIST_HEAD(, struct specinfo) dev_hash[DEVT_HASH];
+static LIST_HEAD(, specinfo) dev_hash[DEVT_HASH];
-static LIST_HEAD(, struct specinfo) dev_free;
+static LIST_HEAD(, specinfo) dev_free;
devfs_create_t *devfs_create_hook;
devfs_remove_t *devfs_remove_hook;
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index cbe9f2b..f0095c97 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -368,10 +368,10 @@ funsetown(sigio)
splx(s);
if (sigio->sio_pgid < 0) {
SLIST_REMOVE(&sigio->sio_pgrp->pg_sigiolst, sigio,
- struct sigio, sio_pgsigio);
+ sigio, sio_pgsigio);
} else /* if ((*sigiop)->sio_pgid > 0) */ {
SLIST_REMOVE(&sigio->sio_proc->p_sigiolst, sigio,
- struct sigio, sio_pgsigio);
+ sigio, sio_pgsigio);
}
crfree(sigio->sio_ucred);
FREE(sigio, M_SIGIO);
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index 48f444a..c22b248 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -180,7 +180,7 @@ filt_kqdetach(struct knote *kn)
{
struct kqueue *kq = (struct kqueue *)kn->kn_fp->f_data;
- SLIST_REMOVE(&kq->kq_sel.si_note, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&kq->kq_sel.si_note, kn, knote, kn_selnext);
}
/*ARGSUSED*/
@@ -239,7 +239,7 @@ filt_procdetach(struct knote *kn)
return;
/* XXX locking? this might modify another process. */
- SLIST_REMOVE(&p->p_klist, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&p->p_klist, kn, knote, kn_selnext);
}
static int
@@ -855,7 +855,7 @@ knote_drop(struct knote *kn, struct proc *p)
else
list = &fdp->fd_knhash[KN_HASH(kn->kn_id, fdp->fd_knhashmask)];
- SLIST_REMOVE(list, kn, struct knote, kn_link);
+ SLIST_REMOVE(list, kn, knote, kn_link);
if (kn->kn_status & KN_QUEUED)
knote_dequeue(kn);
if (kn->kn_fop->f_isfd)
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 3a4c1a4..9115f97 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -82,10 +82,10 @@ static int wait1 __P((struct proc *, struct wait_args *, int));
*/
struct exitlist {
exitlist_fn function;
- TAILQ_ENTRY(struct exitlist) next;
+ TAILQ_ENTRY(exitlist) next;
};
-TAILQ_HEAD(exit_list_head, struct exitlist);
+TAILQ_HEAD(exit_list_head, exitlist);
static struct exit_list_head exit_list = TAILQ_HEAD_INITIALIZER(exit_list);
/*
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index b89bffb..62296b2 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -76,10 +76,10 @@ SYSCTL_INT(_kern, OID_AUTO, fast_vfork, CTLFLAG_RW, &fast_vfork, 0, "");
*/
struct forklist {
forklist_fn function;
- TAILQ_ENTRY(struct forklist) next;
+ TAILQ_ENTRY(forklist) next;
};
-TAILQ_HEAD(forklist_head, struct forklist);
+TAILQ_HEAD(forklist_head, forklist);
static struct forklist_head fork_list = TAILQ_HEAD_INITIALIZER(fork_list);
#ifndef _SYS_SYSPROTO_H_
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c
index c8ad3cb..bb764f4 100644
--- a/sys/kern/kern_linker.c
+++ b/sys/kern/kern_linker.c
@@ -64,9 +64,9 @@ static linker_file_list_t linker_files;
static int next_file_id = 1;
/* XXX wrong name; we're looking at version provision tags here, not modules */
-typedef TAILQ_HEAD(, struct modlist) modlisthead_t;
+typedef TAILQ_HEAD(, modlist) modlisthead_t;
struct modlist {
- TAILQ_ENTRY(struct modlist) link; /* chain together all modules */
+ TAILQ_ENTRY(modlist) link; /* chain together all modules */
linker_file_t container;
const char *name;
};
@@ -480,7 +480,7 @@ linker_file_unload(linker_file_t file)
for (cp = STAILQ_FIRST(&file->common); cp;
cp = STAILQ_FIRST(&file->common)) {
- STAILQ_REMOVE(&file->common, cp, struct common_symbol, link);
+ STAILQ_REMOVE(&file->common, cp, common_symbol, link);
free(cp, M_LINKER);
}
diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index 540be53..46c3d14 100644
--- a/sys/kern/kern_module.c
+++ b/sys/kern/kern_module.c
@@ -39,10 +39,10 @@
MALLOC_DEFINE(M_MODULE, "module", "module data structures");
-typedef TAILQ_HEAD(, struct module) modulelist_t;
+typedef TAILQ_HEAD(, module) modulelist_t;
struct module {
- TAILQ_ENTRY(struct module) link; /* chain together all modules */
- TAILQ_ENTRY(struct module) flink; /* all modules in a file */
+ TAILQ_ENTRY(module) link; /* chain together all modules */
+ TAILQ_ENTRY(module) flink; /* all modules in a file */
struct linker_file* file; /* file which contains this module */
int refs; /* reference count */
int id; /* unique id number */
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index d0a36ec..df9f1c5 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -61,13 +61,13 @@ static void pgdelete __P((struct pgrp *));
* Structure associated with user cacheing.
*/
struct uidinfo {
- LIST_ENTRY(struct uidinfo) ui_hash;
+ LIST_ENTRY(uidinfo) ui_hash;
uid_t ui_uid;
long ui_proccnt;
rlim_t ui_sbsize;
};
#define UIHASH(uid) (&uihashtbl[(uid) & uihash])
-static LIST_HEAD(uihashhead, struct uidinfo) *uihashtbl;
+static LIST_HEAD(uihashhead, uidinfo) *uihashtbl;
static u_long uihash; /* size of hash table - 1 */
static void orphanpg __P((struct pgrp *pg));
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index e67153b..7702aba 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1717,7 +1717,7 @@ filt_sigdetach(struct knote *kn)
{
struct proc *p = kn->kn_ptr.p_proc;
- SLIST_REMOVE(&p->p_klist, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&p->p_klist, kn, knote, kn_selnext);
}
/*
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index 7b99bbf..c0f7f64 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -365,7 +365,7 @@ hashinit(elements, type, hashmask)
u_long *hashmask;
{
long hashsize;
- LIST_HEAD(generic, struct generic) *hashtbl;
+ LIST_HEAD(generic, generic) *hashtbl;
int i;
if (elements <= 0)
@@ -395,7 +395,7 @@ phashinit(elements, type, nentries)
u_long *nentries;
{
long hashsize;
- LIST_HEAD(generic, struct generic) *hashtbl;
+ LIST_HEAD(generic, generic) *hashtbl;
int i;
if (elements <= 0)
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 4dff981..0a8e176 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -361,7 +361,7 @@ updatepri(p)
* of 2. Shift right by 8, i.e. drop the bottom 256 worth.
*/
#define TABLESIZE 128
-static TAILQ_HEAD(slpquehead, struct proc) slpque[TABLESIZE];
+static TAILQ_HEAD(slpquehead, proc) slpque[TABLESIZE];
#define LOOKUP(x) (((intptr_t)(x) >> 8) & (TABLESIZE - 1))
/*
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 907e9626..1da9a0b 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -112,7 +112,7 @@ void sysctl_register_oid(struct sysctl_oid *oidp)
void sysctl_unregister_oid(struct sysctl_oid *oidp)
{
- SLIST_REMOVE(oidp->oid_parent, oidp, struct sysctl_oid, oid_link);
+ SLIST_REMOVE(oidp->oid_parent, oidp, sysctl_oid, oid_link);
}
/*
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 36e58f5..9bbb7b4 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -55,7 +55,7 @@
/*
* "Interrupt driven config" functions.
*/
-static TAILQ_HEAD(, struct intr_config_hook) intr_config_hook_list =
+static TAILQ_HEAD(, intr_config_hook) intr_config_hook_list =
TAILQ_HEAD_INITIALIZER(intr_config_hook_list);
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index 5604a90..ddd1e4f 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -1630,7 +1630,7 @@ resource_list_delete(struct resource_list *rl,
struct resource_list_entry *rle = resource_list_find(rl, type, rid);
if (rle) {
- SLIST_REMOVE(rl, rle, struct resource_list_entry, link);
+ SLIST_REMOVE(rl, rle, resource_list_entry, link);
free(rle, M_BUS);
}
}
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index 28f55cc..fe14002 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -41,7 +41,7 @@ static long devstat_generation;
static int devstat_version = DEVSTAT_VERSION;
static int devstat_current_devnumber;
-static STAILQ_HEAD(devstatlist, struct devstat) device_statq;
+static STAILQ_HEAD(devstatlist, devstat) device_statq;
/*
* Take a malloced and zeroed devstat structure given to us, fill it in
@@ -149,7 +149,7 @@ devstat_remove_entry(struct devstat *ds)
devstat_head = &device_statq;
/* Remove this entry from the devstat queue */
- STAILQ_REMOVE(devstat_head, ds, struct devstat, dev_links);
+ STAILQ_REMOVE(devstat_head, ds, devstat, dev_links);
}
/*
diff --git a/sys/kern/subr_eventhandler.c b/sys/kern/subr_eventhandler.c
index 7d979c9..c23441d 100644
--- a/sys/kern/subr_eventhandler.c
+++ b/sys/kern/subr_eventhandler.c
@@ -35,7 +35,7 @@
MALLOC_DEFINE(M_EVENTHANDLER, "eventhandler", "Event handler records");
/* List of 'slow' lists */
-static TAILQ_HEAD(, struct eventhandler_list) eventhandler_lists;
+static TAILQ_HEAD(, eventhandler_list) eventhandler_lists;
static int eventhandler_lists_initted = 0;
struct eventhandler_entry_generic
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index d1a2741..40d47e4 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1187,7 +1187,7 @@ filt_pipedetach(struct knote *kn)
{
struct pipe *rpipe = (struct pipe *)kn->kn_fp->f_data;
- SLIST_REMOVE(&rpipe->pipe_sel.si_note, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&rpipe->pipe_sel.si_note, kn, knote, kn_selnext);
}
/*ARGSUSED*/
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 163e016..d69ae83 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -198,7 +198,7 @@ static u_char const char_type[] = {
/*
* list of struct tty where pstat(8) can pick it up with sysctl
*/
-static SLIST_HEAD(, struct tty) tty_list;
+static SLIST_HEAD(, tty) tty_list;
static int drainwait = 5*60;
SYSCTL_INT(_kern, OID_AUTO, drainwait, CTLFLAG_RW, &drainwait,
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 8e90cb6..76495e1 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1427,7 +1427,7 @@ filt_sordetach(struct knote *kn)
struct socket *so = (struct socket *)kn->kn_fp->f_data;
int s = splnet();
- SLIST_REMOVE(&so->so_rcv.sb_sel.si_note, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&so->so_rcv.sb_sel.si_note, kn, knote, kn_selnext);
if (SLIST_EMPTY(&so->so_rcv.sb_sel.si_note))
so->so_rcv.sb_flags &= ~SB_KNOTE;
splx(s);
@@ -1465,7 +1465,7 @@ filt_sowdetach(struct knote *kn)
struct socket *so = (struct socket *)kn->kn_fp->f_data;
int s = splnet();
- SLIST_REMOVE(&so->so_snd.sb_sel.si_note, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&so->so_snd.sb_sel.si_note, kn, knote, kn_selnext);
if (SLIST_EMPTY(&so->so_snd.sb_sel.si_note))
so->so_snd.sb_flags &= ~SB_KNOTE;
splx(s);
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index 020bd8e..298bbe1 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -85,7 +85,7 @@ static int getsockname1 __P((struct proc *p, struct getsockname_args *uap,
static int getpeername1 __P((struct proc *p, struct getpeername_args *uap,
int compat));
-static SLIST_HEAD(, struct sf_buf) sf_freelist;
+static SLIST_HEAD(, sf_buf) sf_freelist;
static vm_offset_t sf_base;
static struct sf_buf *sf_bufs;
static int sf_buf_alloc_want;
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 7bb4e5b..16867cd 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -150,9 +150,9 @@ SYSCTL_INT(_vfs_aio, OID_AUTO, aiod_timeout,
struct aioproclist {
int aioprocflags; /* AIO proc flags */
- TAILQ_ENTRY(struct aioproclist) list; /* List of processes */
+ TAILQ_ENTRY(aioproclist) list; /* List of processes */
struct proc *aioproc; /* The AIO thread */
- TAILQ_HEAD (,struct aiocblist) jobtorun; /* suggested job to run */
+ TAILQ_HEAD (,aiocblist) jobtorun; /* suggested job to run */
};
/*
@@ -165,7 +165,7 @@ struct aio_liojob {
int lioj_queue_count;
int lioj_queue_finished_count;
struct sigevent lioj_signal; /* signal on all I/O done */
- TAILQ_ENTRY (struct aio_liojob) lioj_list;
+ TAILQ_ENTRY (aio_liojob) lioj_list;
struct kaioinfo *lioj_ki;
};
#define LIOJ_SIGNAL 0x1 /* signal on all done (lio) */
@@ -185,21 +185,21 @@ struct kaioinfo {
int kaio_buffer_count; /* number of physio buffers */
int kaio_buffer_finished_count; /* count of I/O done */
struct proc *kaio_p; /* process that uses this kaio block */
- TAILQ_HEAD (,struct aio_liojob) kaio_liojoblist; /* list of lio jobs */
- TAILQ_HEAD (,struct aiocblist) kaio_jobqueue; /* job queue for process */
- TAILQ_HEAD (,struct aiocblist) kaio_jobdone; /* done queue for process */
- TAILQ_HEAD (,struct aiocblist) kaio_bufqueue; /* buffer job queue for process */
- TAILQ_HEAD (,struct aiocblist) kaio_bufdone; /* buffer done queue for process */
- TAILQ_HEAD (,struct aiocblist) kaio_sockqueue; /* queue for aios waiting on sockets */
+ TAILQ_HEAD (,aio_liojob) kaio_liojoblist; /* list of lio jobs */
+ TAILQ_HEAD (,aiocblist) kaio_jobqueue; /* job queue for process */
+ TAILQ_HEAD (,aiocblist) kaio_jobdone; /* done queue for process */
+ TAILQ_HEAD (,aiocblist) kaio_bufqueue; /* buffer job queue for process */
+ TAILQ_HEAD (,aiocblist) kaio_bufdone; /* buffer done queue for process */
+ TAILQ_HEAD (,aiocblist) kaio_sockqueue; /* queue for aios waiting on sockets */
};
#define KAIO_RUNDOWN 0x1 /* process is being run down */
#define KAIO_WAKEUP 0x2 /* wakeup process when there is a significant event */
-static TAILQ_HEAD(, struct aioproclist) aio_freeproc, aio_activeproc;
-static TAILQ_HEAD(, struct aiocblist) aio_jobs; /* Async job list */
-static TAILQ_HEAD(, struct aiocblist) aio_bufjobs; /* Phys I/O job list */
-static TAILQ_HEAD(, struct aiocblist) aio_freejobs; /* Pool of free jobs */
+static TAILQ_HEAD(,aioproclist) aio_freeproc, aio_activeproc;
+static TAILQ_HEAD(,aiocblist) aio_jobs; /* Async job list */
+static TAILQ_HEAD(,aiocblist) aio_bufjobs; /* Phys I/O job list */
+static TAILQ_HEAD(,aiocblist) aio_freejobs; /* Pool of free jobs */
static void aio_init_aioinfo(struct proc *p);
static void aio_onceonly(void *);
@@ -2352,7 +2352,7 @@ filt_aiodetach(struct knote *kn)
struct aiocblist *aiocbe = (struct aiocblist *)kn->kn_id;
int s = splhigh(); /* XXX no clue, so overkill */
- SLIST_REMOVE(&aiocbe->klist, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&aiocbe->klist, kn, knote, kn_selnext);
splx(s);
}
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 51c0dcb..93e4620 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -137,7 +137,7 @@ SYSCTL_INT(_vfs, OID_AUTO, bufreusecnt, CTLFLAG_RW,
&bufreusecnt, 0, "");
static int bufhashmask;
-static LIST_HEAD(bufhashhdr, struct buf) *bufhashtbl, invalhash;
+static LIST_HEAD(bufhashhdr, buf) *bufhashtbl, invalhash;
struct bqueues bufqueues[BUFFER_QUEUES] = { { 0 } };
char *buf_wmesg = BUF_WMESG;
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index b34be2e..99e0821 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -55,9 +55,9 @@
*/
struct namecache {
- LIST_ENTRY(struct namecache) nc_hash; /* hash chain */
- LIST_ENTRY(struct namecache) nc_src; /* source vnode list */
- TAILQ_ENTRY(struct namecache) nc_dst; /* destination vnode list */
+ LIST_ENTRY(namecache) nc_hash; /* hash chain */
+ LIST_ENTRY(namecache) nc_src; /* source vnode list */
+ TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */
struct vnode *nc_dvp; /* vnode of parent of name */
struct vnode *nc_vp; /* vnode the name refers to */
u_char nc_flag; /* flag bits */
@@ -87,8 +87,8 @@ struct namecache {
*/
#define NCHHASH(dvp, hash) \
(&nchashtbl[((dvp)->v_id + (hash)) & nchash])
-static LIST_HEAD(nchashhead, struct namecache) *nchashtbl; /* Hash Table */
-static TAILQ_HEAD(, struct namecache) ncneg; /* Hash Table */
+static LIST_HEAD(nchashhead, namecache) *nchashtbl; /* Hash Table */
+static TAILQ_HEAD(, namecache) ncneg; /* Hash Table */
static u_long nchash; /* size of hash table */
SYSCTL_INT(_debug, OID_AUTO, nchash, CTLFLAG_RD, &nchash, 0, "");
static u_long ncnegfactor = 16; /* ratio of negative entries */
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 3d5292e..670d999 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -95,7 +95,7 @@ int vttoif_tab[9] = {
S_IFSOCK, S_IFIFO, S_IFMT,
};
-static TAILQ_HEAD(freelst, struct vnode) vnode_free_list; /* vnode free list */
+static TAILQ_HEAD(freelst, vnode) vnode_free_list; /* vnode free list */
struct tobefreelist vnode_tobefree_list; /* vnode free list */
static u_long wantfreevnodes = 25;
@@ -149,7 +149,7 @@ SYSCTL_INT(_debug, OID_AUTO, rush_requests, CTLFLAG_RW, &stat_rush_requests, 0,
static int syncer_delayno = 0;
static long syncer_mask;
-LIST_HEAD(synclist, struct vnode);
+LIST_HEAD(synclist, vnode);
static struct synclist *syncer_workitem_pending;
int desiredvnodes;
@@ -453,7 +453,7 @@ getnewvnode(tag, mp, vops, vpp)
struct proc *p = curproc; /* XXX */
struct vnode *vp, *tvp, *nvp;
vm_object_t object;
- TAILQ_HEAD(freelst, struct vnode) vnode_tmp_list;
+ TAILQ_HEAD(freelst, vnode) vnode_tmp_list;
/*
* We take the least recently used vnode from the freelist
@@ -1851,7 +1851,7 @@ vgonel(vp, p)
*/
if ((vp->v_type == VBLK || vp->v_type == VCHR) && vp->v_rdev != NULL) {
simple_lock(&spechash_slock);
- SLIST_REMOVE(&vp->v_hashchain, vp, struct vnode, v_specnext);
+ SLIST_REMOVE(&vp->v_hashchain, vp, vnode, v_specnext);
freedev(vp->v_rdev);
simple_unlock(&spechash_slock);
vp->v_rdev = NULL;
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 3d5292e..670d999 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -95,7 +95,7 @@ int vttoif_tab[9] = {
S_IFSOCK, S_IFIFO, S_IFMT,
};
-static TAILQ_HEAD(freelst, struct vnode) vnode_free_list; /* vnode free list */
+static TAILQ_HEAD(freelst, vnode) vnode_free_list; /* vnode free list */
struct tobefreelist vnode_tobefree_list; /* vnode free list */
static u_long wantfreevnodes = 25;
@@ -149,7 +149,7 @@ SYSCTL_INT(_debug, OID_AUTO, rush_requests, CTLFLAG_RW, &stat_rush_requests, 0,
static int syncer_delayno = 0;
static long syncer_mask;
-LIST_HEAD(synclist, struct vnode);
+LIST_HEAD(synclist, vnode);
static struct synclist *syncer_workitem_pending;
int desiredvnodes;
@@ -453,7 +453,7 @@ getnewvnode(tag, mp, vops, vpp)
struct proc *p = curproc; /* XXX */
struct vnode *vp, *tvp, *nvp;
vm_object_t object;
- TAILQ_HEAD(freelst, struct vnode) vnode_tmp_list;
+ TAILQ_HEAD(freelst, vnode) vnode_tmp_list;
/*
* We take the least recently used vnode from the freelist
@@ -1851,7 +1851,7 @@ vgonel(vp, p)
*/
if ((vp->v_type == VBLK || vp->v_type == VCHR) && vp->v_rdev != NULL) {
simple_lock(&spechash_slock);
- SLIST_REMOVE(&vp->v_hashchain, vp, struct vnode, v_specnext);
+ SLIST_REMOVE(&vp->v_hashchain, vp, vnode, v_specnext);
freedev(vp->v_rdev);
simple_unlock(&spechash_slock);
vp->v_rdev = NULL;
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 0e0e8ad..53c2cdb 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -685,7 +685,7 @@ filt_vndetach(struct knote *kn)
simple_lock(&vp->v_pollinfo.vpi_lock);
SLIST_REMOVE(&vp->v_pollinfo.vpi_selinfo.si_note,
- kn, struct knote, kn_selnext);
+ kn, knote, kn_selnext);
simple_unlock(&vp->v_pollinfo.vpi_lock);
}
diff --git a/sys/miscfs/fdesc/fdesc.h b/sys/miscfs/fdesc/fdesc.h
index cbd45fa..60b6006 100644
--- a/sys/miscfs/fdesc/fdesc.h
+++ b/sys/miscfs/fdesc/fdesc.h
@@ -52,7 +52,7 @@ typedef enum {
} fdntype;
struct fdescnode {
- LIST_ENTRY(struct fdescnode) fd_hash; /* Hash list */
+ LIST_ENTRY(fdescnode) fd_hash; /* Hash list */
struct vnode *fd_vnode; /* Back ptr to vnode */
fdntype fd_type; /* Type of this node */
unsigned fd_fd; /* Fd to be dup'ed */
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c
index 0f00f1c..368d844 100644
--- a/sys/miscfs/fdesc/fdesc_vnops.c
+++ b/sys/miscfs/fdesc/fdesc_vnops.c
@@ -67,7 +67,7 @@ static vop_t **fdesc_vnodeop_p;
#define NFDCACHE 4
#define FD_NHASH(ix) \
(&fdhashtbl[(ix) & fdhash])
-static LIST_HEAD(fdhashhead, struct fdescnode) *fdhashtbl;
+static LIST_HEAD(fdhashhead, fdescnode) *fdhashtbl;
static u_long fdhash;
static int fdesc_badop __P((void));
diff --git a/sys/miscfs/fifofs/fifo_vnops.c b/sys/miscfs/fifofs/fifo_vnops.c
index a1b82c9..5bd13a7 100644
--- a/sys/miscfs/fifofs/fifo_vnops.c
+++ b/sys/miscfs/fifofs/fifo_vnops.c
@@ -372,7 +372,7 @@ filt_fifordetach(struct knote *kn)
struct vnode *vn = (struct vnode *)kn->kn_fp->f_data;
struct socket *so = (struct socket *)vn->v_fifoinfo->fi_readsock;
- SLIST_REMOVE(&so->so_rcv.sb_sel.si_note, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&so->so_rcv.sb_sel.si_note, kn, knote, kn_selnext);
if (SLIST_EMPTY(&so->so_rcv.sb_sel.si_note))
so->so_rcv.sb_flags &= ~SB_KNOTE;
}
@@ -409,7 +409,7 @@ filt_fifowdetach(struct knote *kn)
struct vnode *vn = (struct vnode *)kn->kn_fp->f_data;
struct socket *so = (struct socket *)vn->v_fifoinfo->fi_readsock;
- SLIST_REMOVE(&so->so_snd.sb_sel.si_note, kn, struct knote, kn_selnext);
+ SLIST_REMOVE(&so->so_snd.sb_sel.si_note, kn, knote, kn_selnext);
if (SLIST_EMPTY(&so->so_snd.sb_sel.si_note))
so->so_snd.sb_flags &= ~SB_KNOTE;
}
diff --git a/sys/miscfs/nullfs/null.h b/sys/miscfs/nullfs/null.h
index 8747230..2b7ed51 100644
--- a/sys/miscfs/nullfs/null.h
+++ b/sys/miscfs/nullfs/null.h
@@ -52,7 +52,7 @@ struct null_mount {
* A cache of vnode references
*/
struct null_node {
- LIST_ENTRY(struct null_node) null_hash; /* Hash list */
+ LIST_ENTRY(null_node) null_hash; /* Hash list */
struct vnode *null_lowervp; /* VREFed once */
struct vnode *null_vnode; /* Back pointer */
};
diff --git a/sys/miscfs/nullfs/null_subr.c b/sys/miscfs/nullfs/null_subr.c
index 7c4f669..ad37a1e 100644
--- a/sys/miscfs/nullfs/null_subr.c
+++ b/sys/miscfs/nullfs/null_subr.c
@@ -59,7 +59,7 @@
#define NULL_NHASH(vp) \
(&null_node_hashtbl[(((uintptr_t)vp)>>LOG2_SIZEVNODE) & null_node_hash])
-static LIST_HEAD(null_node_hashhead, struct null_node) *null_node_hashtbl;
+static LIST_HEAD(null_node_hashhead, null_node) *null_node_hashtbl;
static u_long null_node_hash;
static int null_node_alloc __P((struct mount *mp, struct vnode *lowervp,
diff --git a/sys/miscfs/umapfs/umap.h b/sys/miscfs/umapfs/umap.h
index 0964614..eb562ed 100644
--- a/sys/miscfs/umapfs/umap.h
+++ b/sys/miscfs/umapfs/umap.h
@@ -67,7 +67,7 @@ struct umap_mount {
* A cache of vnode references
*/
struct umap_node {
- LIST_ENTRY(struct umap_node) umap_hash; /* Hash list */
+ LIST_ENTRY(umap_node) umap_hash; /* Hash list */
struct vnode *umap_lowervp; /* Aliased vnode - VREFed once */
struct vnode *umap_vnode; /* Back pointer to vnode/umap_node */
};
diff --git a/sys/miscfs/umapfs/umap_subr.c b/sys/miscfs/umapfs/umap_subr.c
index 0ec9a43..6f08513 100644
--- a/sys/miscfs/umapfs/umap_subr.c
+++ b/sys/miscfs/umapfs/umap_subr.c
@@ -60,7 +60,7 @@
#define UMAP_NHASH(vp) \
(&umap_node_hashtbl \
[((uintptr_t)(void *)(vp) >> LOG2_SIZEVNODE) & umap_node_hash])
-static LIST_HEAD(umap_node_hashhead, struct umap_node) *umap_node_hashtbl;
+static LIST_HEAD(umap_node_hashhead, umap_node) *umap_node_hashtbl;
static u_long umap_node_hash;
static u_long umap_findid __P((u_long id, u_long map[][2], int nentries));
diff --git a/sys/miscfs/union/union.h b/sys/miscfs/union/union.h
index 65be0ab..a720d41 100644
--- a/sys/miscfs/union/union.h
+++ b/sys/miscfs/union/union.h
@@ -79,7 +79,7 @@ struct union_mount {
*/
struct union_node {
struct lock un_lock;
- LIST_ENTRY(struct union_node) un_cache; /* Hash chain */
+ LIST_ENTRY(union_node) un_cache; /* Hash chain */
struct vnode *un_vnode; /* Back pointer */
struct vnode *un_uppervp; /* overlaying object */
struct vnode *un_lowervp; /* underlying object */
diff --git a/sys/miscfs/union/union_subr.c b/sys/miscfs/union/union_subr.c
index 4d4c2fa..6b88bef 100644
--- a/sys/miscfs/union/union_subr.c
+++ b/sys/miscfs/union/union_subr.c
@@ -67,7 +67,7 @@ extern int union_init __P((void));
#define UNION_HASH(u, l) \
(((((uintptr_t) (u)) + ((uintptr_t) l)) >> 8) & (NHASH-1))
-static LIST_HEAD(unhead, struct union_node) unhead[NHASH];
+static LIST_HEAD(unhead, union_node) unhead[NHASH];
static int unvplock[NHASH];
static void union_dircache_r __P((struct vnode *vp, struct vnode ***vppp,
diff --git a/sys/net/hostcache.h b/sys/net/hostcache.h
index c0b0f12..3158db9 100644
--- a/sys/net/hostcache.h
+++ b/sys/net/hostcache.h
@@ -49,7 +49,7 @@
#include <sys/queue.h>
struct hcentry {
- LIST_ENTRY(struct hcentry) hc_link;
+ LIST_ENTRY(hcentry) hc_link;
struct timeval hc_idlesince; /* time last ref dropped */
struct sockaddr *hc_host; /* address of this entry's host */
struct rtentry *hc_rt; /* route to get there */
@@ -64,7 +64,7 @@ struct hccallback {
u_long (*hccb_bump)(u_long);
};
-LIST_HEAD(hchead, struct hcentry);
+LIST_HEAD(hchead, hcentry);
struct hctable {
u_long hct_nentries;
diff --git a/sys/net/if_ef.c b/sys/net/if_ef.c
index 344271a..97d93c8 100644
--- a/sys/net/if_ef.c
+++ b/sys/net/if_ef.c
@@ -82,12 +82,12 @@ struct efnet {
};
struct ef_link {
- SLIST_ENTRY(struct ef_link) el_next;
+ SLIST_ENTRY(ef_link) el_next;
struct ifnet *el_ifp; /* raw device for this clones */
struct efnet *el_units[EF_NFT]; /* our clones */
};
-static SLIST_HEAD(ef_link_head, struct ef_link) efdev = {NULL};
+static SLIST_HEAD(ef_link_head, ef_link) efdev = {NULL};
static int efcount;
extern int (*ef_inputp)(struct ifnet*, struct ether_header *eh, struct mbuf *m);
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index ea7bfb7..2ed5ed0 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -64,7 +64,7 @@ typedef void (*ifm_stat_cb_t) __P((struct ifnet *ifp, struct ifmediareq *req));
* In-kernel representation of a single supported media type.
*/
struct ifmedia_entry {
- LIST_ENTRY(struct ifmedia_entry) ifm_list;
+ LIST_ENTRY(ifmedia_entry) ifm_list;
int ifm_media; /* description of this media attachment */
int ifm_data; /* for driver-specific use */
void *ifm_aux; /* for driver-specific use */
@@ -78,7 +78,7 @@ struct ifmedia {
int ifm_mask; /* mask of changes we don't care about */
int ifm_media; /* current user-set media word */
struct ifmedia_entry *ifm_cur; /* currently selected media */
- LIST_HEAD(, struct ifmedia_entry) ifm_list; /* list of all supported media */
+ LIST_HEAD(, ifmedia_entry) ifm_list; /* list of all supported media */
ifm_change_cb_t ifm_change; /* media change driver callback */
ifm_stat_cb_t ifm_status; /* media status driver callback */
};
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index a7060cd..2ec532b 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -75,10 +75,10 @@ struct ether_header;
#include <sys/queue.h> /* get TAILQ macros */
-TAILQ_HEAD(ifnethead, struct ifnet); /* we use TAILQs so that the order of */
-TAILQ_HEAD(ifaddrhead, struct ifaddr); /* instantiation is preserved in the list */
-TAILQ_HEAD(ifprefixhead, struct ifprefix);
-LIST_HEAD(ifmultihead, struct ifmultiaddr);
+TAILQ_HEAD(ifnethead, ifnet); /* we use TAILQs so that the order of */
+TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the list */
+TAILQ_HEAD(ifprefixhead, ifprefix);
+LIST_HEAD(ifmultihead, ifmultiaddr);
/*
* Structure defining a queue for a network interface.
@@ -99,7 +99,7 @@ struct ifqueue {
struct ifnet {
void *if_softc; /* pointer to driver state */
char *if_name; /* name, e.g. ``en'' or ``lo'' */
- TAILQ_ENTRY(struct ifnet) if_link; /* all struct ifnets are chained */
+ TAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained */
struct ifaddrhead if_addrhead; /* linked list of addresses per if */
int if_pcount; /* number of promiscuous listeners */
struct bpf_if *if_bpf; /* packet filter structure */
@@ -260,7 +260,7 @@ struct ifaddr {
#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */
struct sockaddr *ifa_netmask; /* used to determine subnet */
struct ifnet *ifa_ifp; /* back-pointer to interface */
- TAILQ_ENTRY(struct ifaddr) ifa_link; /* queue macro glue */
+ TAILQ_ENTRY(ifaddr) ifa_link; /* queue macro glue */
void (*ifa_rtrequest) /* check or clean routes (+ or -)'d */
__P((int, struct rtentry *, struct sockaddr *));
u_short ifa_flags; /* mostly rt_flags for cloning */
@@ -287,7 +287,7 @@ struct ifaddr {
struct ifprefix {
struct sockaddr *ifpr_prefix; /* prefix of interface */
struct ifnet *ifpr_ifp; /* back-pointer to interface */
- TAILQ_ENTRY(struct ifprefix) ifpr_list; /* queue macro glue */
+ TAILQ_ENTRY(ifprefix) ifpr_list; /* queue macro glue */
u_char ifpr_plen; /* prefix length in bits */
u_char ifpr_type; /* protocol dependent prefix type */
};
@@ -299,7 +299,7 @@ struct ifprefix {
* address, not a count of pointers to this structure.
*/
struct ifmultiaddr {
- LIST_ENTRY(struct ifmultiaddr) ifma_link; /* queue macro glue */
+ LIST_ENTRY(ifmultiaddr) ifma_link; /* queue macro glue */
struct sockaddr *ifma_addr; /* address this membership is for */
struct sockaddr *ifma_lladdr; /* link-layer translation, if any */
struct ifnet *ifma_ifp; /* back-pointer to interface */
diff --git a/sys/net/if_vlan_var.h b/sys/net/if_vlan_var.h
index 2cbcc21..8fbe10c 100644
--- a/sys/net/if_vlan_var.h
+++ b/sys/net/if_vlan_var.h
@@ -35,7 +35,7 @@
#ifdef _KERNEL
struct vlan_mc_entry {
struct ether_addr mc_addr;
- SLIST_ENTRY(struct vlan_mc_entry) mc_entries;
+ SLIST_ENTRY(vlan_mc_entry) mc_entries;
};
struct ifvlan {
@@ -46,7 +46,7 @@ struct ifvlan {
u_int16_t ifvm_proto; /* encapsulation ethertype */
u_int16_t ifvm_tag; /* tag to apply on packets leaving if */
} ifv_mib;
- SLIST_HEAD(__vlan_mchead, struct vlan_mc_entry) vlan_mc_listhead;
+ SLIST_HEAD(__vlan_mchead, vlan_mc_entry) vlan_mc_listhead;
};
#define ifv_if ifv_ac.ac_if
#define ifv_tag ifv_mib.ifvm_tag
diff --git a/sys/net/pfil.h b/sys/net/pfil.h
index bed0b27..7831328 100644
--- a/sys/net/pfil.h
+++ b/sys/net/pfil.h
@@ -41,7 +41,7 @@ struct ifnet;
* possibly intercept the packet.
*/
struct packet_filter_hook {
- TAILQ_ENTRY(struct packet_filter_hook) pfil_link;
+ TAILQ_ENTRY(packet_filter_hook) pfil_link;
int (*pfil_func) __P((void *, int, struct ifnet *, int,
struct mbuf **));
int pfil_flags;
@@ -52,7 +52,7 @@ struct packet_filter_hook {
#define PFIL_WAITOK 0x00000004
#define PFIL_ALL (PFIL_IN|PFIL_OUT)
-typedef TAILQ_HEAD(pfil_list, struct packet_filter_hook) pfil_list_t;
+typedef TAILQ_HEAD(pfil_list, packet_filter_hook) pfil_list_t;
struct pfil_head {
pfil_list_t ph_in;
diff --git a/sys/net/raw_cb.h b/sys/net/raw_cb.h
index cdf695b..6c079a9 100644
--- a/sys/net/raw_cb.h
+++ b/sys/net/raw_cb.h
@@ -44,7 +44,7 @@
* to tie a socket to the generic raw interface.
*/
struct rawcb {
- LIST_ENTRY(struct rawcb) list;
+ LIST_ENTRY(rawcb) list;
struct socket *rcb_socket; /* back pointer to socket */
struct sockaddr *rcb_faddr; /* destination address */
struct sockaddr *rcb_laddr; /* socket's address */
@@ -60,7 +60,7 @@ struct rawcb {
#define RAWRCVQ 8192
#ifdef _KERNEL
-extern LIST_HEAD(rawcb_list_head, struct rawcb) rawcb_list;
+extern LIST_HEAD(rawcb_list_head, rawcb) rawcb_list;
int raw_attach __P((struct socket *, int));
void raw_ctlinput __P((int, struct sockaddr *, void *));
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index 89e955f..7b04409 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -61,7 +61,7 @@ struct ng_hook {
int refs; /* dont actually free this till 0 */
struct ng_hook *peer; /* the other end of this link */
struct ng_node *node; /* The node this hook is attached to */
- LIST_ENTRY(struct ng_hook) hooks; /* linked list of all hooks on node */
+ LIST_ENTRY(ng_hook) hooks; /* linked list of all hooks on node */
};
typedef struct ng_hook *hook_p;
@@ -81,9 +81,9 @@ struct ng_node {
int colour; /* for graph colouring algorithms */
void *private; /* node type dependant node ID */
ng_ID_t ID; /* Unique per node */
- LIST_HEAD(hooks, struct ng_hook) hooks; /* linked list of node hooks */
- LIST_ENTRY(struct ng_node) nodes; /* linked list of all nodes */
- LIST_ENTRY(struct ng_node) idnodes; /* ID hash collision list */
+ LIST_HEAD(hooks, ng_hook) hooks; /* linked list of node hooks */
+ LIST_ENTRY(ng_node) nodes; /* linked list of all nodes */
+ LIST_ENTRY(ng_node) idnodes; /* ID hash collision list */
};
typedef struct ng_node *node_p;
@@ -177,7 +177,7 @@ struct ng_type {
const struct ng_cmdlist *cmdlist; /* commands we can convert */
/* R/W data private to the base netgraph code DON'T TOUCH! */
- LIST_ENTRY(struct ng_type) types; /* linked list of all types */
+ LIST_ENTRY(ng_type) types; /* linked list of all types */
int refs; /* number of instances */
};
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 037ad04..1c0d80e 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -66,14 +66,14 @@
MODULE_VERSION(netgraph, 1);
/* List of all nodes */
-static LIST_HEAD(, struct ng_node) nodelist;
+static LIST_HEAD(, ng_node) nodelist;
/* List of installed types */
-static LIST_HEAD(, struct ng_type) typelist;
+static LIST_HEAD(, ng_type) typelist;
/* Hash releted definitions */
#define ID_HASH_SIZE 32 /* most systems wont need even this many */
-static LIST_HEAD(, struct ng_node) ID_hash[ID_HASH_SIZE];
+static LIST_HEAD(, ng_node) ID_hash[ID_HASH_SIZE];
/* Don't nead to initialise them because it's a LIST */
/* Internal functions */
diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c
index 83f7d77..ba1dacf 100644
--- a/sys/netgraph/ng_ppp.c
+++ b/sys/netgraph/ng_ppp.c
@@ -131,7 +131,7 @@ struct ng_ppp_frag {
struct timeval timestamp; /* time of reception */
struct mbuf *data; /* Fragment data */
meta_p meta; /* Fragment meta */
- CIRCLEQ_ENTRY(struct ng_ppp_frag) f_qent; /* Fragment queue */
+ CIRCLEQ_ENTRY(ng_ppp_frag) f_qent; /* Fragment queue */
};
/* We use integer indicies to refer to the non-link hooks */
@@ -195,7 +195,7 @@ struct ng_ppp_private {
int activeLinks[NG_PPP_MAX_LINKS]; /* indicies */
u_int lastLink; /* for round robin */
hook_p hooks[HOOK_INDEX_MAX]; /* non-link hooks */
- CIRCLEQ_HEAD(ng_ppp_fraglist, struct ng_ppp_frag) /* fragment queue */
+ CIRCLEQ_HEAD(ng_ppp_fraglist, ng_ppp_frag) /* fragment queue */
frags;
int qlen; /* fraq queue length */
struct callout_handle fragTimer; /* fraq queue check */
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c
index 08c8c91..6a3266c 100644
--- a/sys/netgraph/ng_socket.c
+++ b/sys/netgraph/ng_socket.c
@@ -142,7 +142,7 @@ static u_long ngpdg_sendspace = 2 * 1024; /* really max datagram size */
static u_long ngpdg_recvspace = 20 * 1024;
/* List of all sockets */
-LIST_HEAD(, struct ngpcb) ngsocklist;
+LIST_HEAD(, ngpcb) ngsocklist;
#define sotongpcb(so) ((struct ngpcb *)(so)->so_pcb)
diff --git a/sys/netgraph/ng_socketvar.h b/sys/netgraph/ng_socketvar.h
index 3654bbe..df9cba3 100644
--- a/sys/netgraph/ng_socketvar.h
+++ b/sys/netgraph/ng_socketvar.h
@@ -47,7 +47,7 @@
struct ngpcb {
struct socket *ng_socket; /* the socket */
struct ngsock *sockdata; /* netgraph info */
- LIST_ENTRY(struct ngpcb) socks; /* linked list of sockets */
+ LIST_ENTRY(ngpcb) socks; /* linked list of sockets */
int type; /* NG_CONTROL or NG_DATA */
};
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 3eac14a..1125455 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -87,14 +87,14 @@ SYSCTL_INT(_net_link_ether_inet, OID_AUTO, host_down_time, CTLFLAG_RW,
#define rt_expire rt_rmx.rmx_expire
struct llinfo_arp {
- LIST_ENTRY(struct llinfo_arp) la_le;
+ LIST_ENTRY(llinfo_arp) la_le;
struct rtentry *la_rt;
struct mbuf *la_hold; /* last packet until resolved/timeout */
long la_asked; /* last time we QUERIED for this addr */
#define la_timer la_rt->rt_rmx.rmx_expire /* deletion time in seconds */
};
-static LIST_HEAD(, struct llinfo_arp) llinfo_arp;
+static LIST_HEAD(, llinfo_arp) llinfo_arp;
struct ifqueue arpintrq = {0, 0, 0, 50};
static int arp_inuse, arp_allocated;
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index cc9527c..08733ad 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -52,8 +52,8 @@
* up (to a socket structure) and down (to a protocol-specific)
* control block.
*/
-LIST_HEAD(inpcbhead, struct inpcb);
-LIST_HEAD(inpcbporthead, struct inpcbport);
+LIST_HEAD(inpcbhead, inpcb);
+LIST_HEAD(inpcbporthead, inpcbport);
typedef u_quad_t inp_gen_t;
/*
@@ -75,10 +75,10 @@ struct in_addr_4in6 {
struct icmp6_filter;
struct inpcb {
- LIST_ENTRY(struct inpcb) inp_hash; /* hash list */
+ LIST_ENTRY(inpcb) inp_hash; /* hash list */
u_short inp_fport; /* foreign port */
u_short inp_lport; /* local port */
- LIST_ENTRY(struct inpcb) inp_list; /* list for all PCBs of this proto */
+ LIST_ENTRY(inpcb) inp_list; /* list for all PCBs of this proto */
u_int32_t inp_flow;
/* protocol dependent part, local and foreign addr */
@@ -140,7 +140,7 @@ struct inpcb {
short inp6_hops;
u_int8_t inp6_hlim;
} inp_depend6;
- LIST_ENTRY(struct inpcb) inp_portlist;
+ LIST_ENTRY(inpcb) inp_portlist;
struct inpcbport *inp_phd; /* head of this list */
inp_gen_t inp_gencnt; /* generation count of this instance */
#define in6p_faddr inp_dependfaddr.inp6_foreign
@@ -191,7 +191,7 @@ struct xinpgen {
#endif /* _SYS_SOCKETVAR_H_ */
struct inpcbport {
- LIST_ENTRY(struct inpcbport) phd_hash;
+ LIST_ENTRY(inpcbport) phd_hash;
struct inpcbhead phd_pcblist;
u_short phd_port;
};
diff --git a/sys/netinet/in_var.h b/sys/netinet/in_var.h
index f0cbab6..de2a6a6 100644
--- a/sys/netinet/in_var.h
+++ b/sys/netinet/in_var.h
@@ -55,7 +55,7 @@ struct in_ifaddr {
u_long ia_subnet; /* subnet number, including net */
u_long ia_subnetmask; /* mask of subnet part */
struct in_addr ia_netbroadcast; /* to recognize net broadcasts */
- TAILQ_ENTRY(struct in_ifaddr) ia_link; /* tailq macro glue */
+ TAILQ_ENTRY(in_ifaddr) ia_link; /* tailq macro glue */
struct sockaddr_in ia_addr; /* reserve space for interface name */
struct sockaddr_in ia_dstaddr; /* reserve space for broadcast addr */
#define ia_broadaddr ia_dstaddr
@@ -81,7 +81,7 @@ struct in_aliasreq {
#ifdef _KERNEL
-extern TAILQ_HEAD(in_ifaddrhead, struct in_ifaddr) in_ifaddrhead;
+extern TAILQ_HEAD(in_ifaddrhead, in_ifaddr) in_ifaddrhead;
extern struct ifqueue ipintrq; /* ip packet input queue */
extern struct in_addr zeroin_addr;
extern u_char inetctlerrmap[];
@@ -147,7 +147,7 @@ struct router_info {
* compatible with the rest of the world (see IN_FIRST_MULTI et al, below).
*/
struct in_multi {
- LIST_ENTRY(struct in_multi) inm_link; /* queue macro glue */
+ LIST_ENTRY(in_multi) inm_link; /* queue macro glue */
struct in_addr inm_addr; /* IP multicast address, convenience */
struct ifnet *inm_ifp; /* back pointer to ifnet */
struct ifmultiaddr *inm_ifma; /* back pointer to ifmultiaddr */
@@ -163,7 +163,7 @@ SYSCTL_DECL(_net_inet_ip);
SYSCTL_DECL(_net_inet_raw);
#endif
-extern LIST_HEAD(in_multihead, struct in_multi) in_multihead;
+extern LIST_HEAD(in_multihead, in_multi) in_multihead;
/*
* Structure used by macros below to remember position when stepping through
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index 28be322..5f8c091 100644
--- a/sys/netinet/ip_dummynet.c
+++ b/sys/netinet/ip_dummynet.c
@@ -120,7 +120,7 @@ static void dummynet_flush(void);
* ip_fw_chain is used when deleting a pipe, because ipfw rules can
* hold references to the pipe.
*/
-extern LIST_HEAD (ip_fw_head, struct ip_fw_chain) ip_fw_chain;
+extern LIST_HEAD (ip_fw_head, ip_fw_chain) ip_fw_chain;
static void
rt_unref(struct rtentry *rt)
diff --git a/sys/netinet/ip_flow.c b/sys/netinet/ip_flow.c
index 119dd59..6c9119b 100644
--- a/sys/netinet/ip_flow.c
+++ b/sys/netinet/ip_flow.c
@@ -59,7 +59,7 @@
#define IPFLOW_TIMER (5 * PR_SLOWHZ)
#define IPFLOW_HASHBITS 6 /* should not be a multiple of 8 */
#define IPFLOW_HASHSIZE (1 << IPFLOW_HASHBITS)
-static LIST_HEAD(ipflowhead, struct ipflow) ipflows[IPFLOW_HASHSIZE];
+static LIST_HEAD(ipflowhead, ipflow) ipflows[IPFLOW_HASHSIZE];
static int ipflow_inuse;
#define IPFLOW_MAX 256
diff --git a/sys/netinet/ip_flow.h b/sys/netinet/ip_flow.h
index 2e334af..4675996 100644
--- a/sys/netinet/ip_flow.h
+++ b/sys/netinet/ip_flow.h
@@ -40,7 +40,7 @@
#define _NETINET_IP_FLOW_H
struct ipflow {
- LIST_ENTRY(struct ipflow) ipf_next; /* next ipflow in bucket */
+ LIST_ENTRY(ipflow) ipf_next; /* next ipflow in bucket */
struct in_addr ipf_dst; /* destination address */
struct in_addr ipf_src; /* source address */
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c
index 8e654e6..03deaa7 100644
--- a/sys/netinet/ip_fw.c
+++ b/sys/netinet/ip_fw.c
@@ -84,7 +84,7 @@ struct ipfw_flow_id last_pkt ;
#define IPFW_DEFAULT_RULE ((u_int)(u_short)~0)
-LIST_HEAD (ip_fw_head, struct ip_fw_chain) ip_fw_chain;
+LIST_HEAD (ip_fw_head, ip_fw_chain) ip_fw_chain;
MALLOC_DEFINE(M_IPFW, "IpFw/IpAcct", "IpFw/IpAcct chain's");
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h
index 1609bd9..a106108 100644
--- a/sys/netinet/ip_fw.h
+++ b/sys/netinet/ip_fw.h
@@ -123,7 +123,7 @@ struct ip_fw_ext { /* extended structure */
#define fw_fwd_ip fw_un.fu_fwd_ip
struct ip_fw_chain {
- LIST_ENTRY(struct ip_fw_chain) chain;
+ LIST_ENTRY(ip_fw_chain) chain;
struct ip_fw *rule;
};
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 57e81a7..5798c84 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -42,12 +42,12 @@
/* TCP segment queue entry */
struct tseg_qent {
- LIST_ENTRY(struct tseg_qent) tqe_q;
+ LIST_ENTRY(tseg_qent) tqe_q;
int tqe_len; /* TCP segment data length */
struct tcphdr *tqe_th; /* a pointer to tcp header */
struct mbuf *tqe_m; /* mbuf contains packet */
};
-LIST_HEAD(tsegqe_head, struct tseg_qent);
+LIST_HEAD(tsegqe_head, tseg_qent);
#ifdef MALLOC_DECLARE
MALLOC_DECLARE(M_TSEGQ);
#endif
diff --git a/sys/netinet6/in6_prefix.h b/sys/netinet6/in6_prefix.h
index daae4ed..fa5a0e3 100644
--- a/sys/netinet6/in6_prefix.h
+++ b/sys/netinet6/in6_prefix.h
@@ -31,8 +31,8 @@
struct rr_prefix {
struct ifprefix rp_ifpr;
- LIST_ENTRY(struct rr_prefix) rp_entry;
- LIST_HEAD(rp_addrhead, struct rp_addr) rp_addrhead;
+ LIST_ENTRY(rr_prefix) rp_entry;
+ LIST_HEAD(rp_addrhead, rp_addr) rp_addrhead;
struct sockaddr_in6 rp_prefix; /* prefix */
u_int32_t rp_vltime; /* advertised valid lifetime */
u_int32_t rp_pltime; /* advertised preferred lifetime */
@@ -63,7 +63,7 @@ struct rr_prefix {
#define rp_rrf_decrprefd rp_flags.prf_rr.decrprefd
struct rp_addr {
- LIST_ENTRY(struct rp_addr) ra_entry;
+ LIST_ENTRY(rp_addr) ra_entry;
struct in6_addr ra_ifid;
struct in6_ifaddr *ra_addr;
struct ra_flags {
@@ -79,7 +79,7 @@ struct rp_addr {
#define RR_INFINITE_LIFETIME 0xffffffff
-LIST_HEAD(rr_prhead, struct rr_prefix);
+LIST_HEAD(rr_prhead, rr_prefix);
extern struct rr_prhead rr_prefix;
diff --git a/sys/netinet6/in6_var.h b/sys/netinet6/in6_var.h
index d8aeb57..163c167 100644
--- a/sys/netinet6/in6_var.h
+++ b/sys/netinet6/in6_var.h
@@ -453,11 +453,11 @@ do { \
*/
struct in6_multi_mship {
struct in6_multi *i6mm_maddr; /* Multicast address pointer */
- LIST_ENTRY(struct in6_multi_mship) i6mm_chain; /* multicast options chain */
+ LIST_ENTRY(in6_multi_mship) i6mm_chain; /* multicast options chain */
};
struct in6_multi {
- LIST_ENTRY(struct in6_multi) in6m_entry; /* list glue */
+ LIST_ENTRY(in6_multi) in6m_entry; /* list glue */
struct in6_addr in6m_addr; /* IP6 multicast address */
struct ifnet *in6m_ifp; /* back pointer to ifnet */
struct ifmultiaddr *in6m_ifma; /* back pointer to ifmultiaddr */
@@ -472,7 +472,7 @@ struct in6_multi {
SYSCTL_DECL(_net_inet6_ip6);
#endif
-extern LIST_HEAD(in6_multihead, struct in6_multi) in6_multihead;
+extern LIST_HEAD(in6_multihead, in6_multi) in6_multihead;
/*
* Structure used by macros below to remember position when stepping through
diff --git a/sys/netinet6/ip6_fw.c b/sys/netinet6/ip6_fw.c
index 40cf312..d6b4ca2 100644
--- a/sys/netinet6/ip6_fw.c
+++ b/sys/netinet6/ip6_fw.c
@@ -66,7 +66,7 @@ static int fw6_verbose_limit = IPV6FIREWALL_VERBOSE_LIMIT;
static int fw6_verbose_limit = 0;
#endif
-LIST_HEAD (ip6_fw_head, struct ip6_fw_chain) ip6_fw_chain;
+LIST_HEAD (ip6_fw_head, ip6_fw_chain) ip6_fw_chain;
#ifdef SYSCTL_NODE
SYSCTL_DECL(_net_inet6_ip6);
diff --git a/sys/netinet6/ip6_fw.h b/sys/netinet6/ip6_fw.h
index 3b492eb..a356ac3 100644
--- a/sys/netinet6/ip6_fw.h
+++ b/sys/netinet6/ip6_fw.h
@@ -97,7 +97,7 @@ struct ip6_fw {
#define fw_reject_code fw_un.fu_reject_code
struct ip6_fw_chain {
- LIST_ENTRY(struct ip6_fw_chain) chain;
+ LIST_ENTRY(ip6_fw_chain) chain;
struct ip6_fw *rule;
};
diff --git a/sys/netinet6/ip6_var.h b/sys/netinet6/ip6_var.h
index 0a33997..2e70bcb 100644
--- a/sys/netinet6/ip6_var.h
+++ b/sys/netinet6/ip6_var.h
@@ -109,7 +109,7 @@ struct ip6_moptions {
struct ifnet *im6o_multicast_ifp; /* ifp for outgoing multicasts */
u_char im6o_multicast_hlim; /* hoplimit for outgoing multicasts */
u_char im6o_multicast_loop; /* 1 >= hear sends if a member */
- LIST_HEAD(, struct in6_multi_mship) im6o_memberships;
+ LIST_HEAD(, in6_multi_mship) im6o_memberships;
};
/*
diff --git a/sys/netinet6/ipsec.h b/sys/netinet6/ipsec.h
index ee20268..df68bd7 100644
--- a/sys/netinet6/ipsec.h
+++ b/sys/netinet6/ipsec.h
@@ -59,7 +59,7 @@ struct secpolicyindex {
/* Security Policy Data Base */
struct secpolicy {
- LIST_ENTRY(struct secpolicy) chain;
+ LIST_ENTRY(secpolicy) chain;
int refcnt; /* reference count */
struct secpolicyindex spidx; /* selector */
diff --git a/sys/netinet6/nd6.h b/sys/netinet6/nd6.h
index 3040dc9..756f495 100644
--- a/sys/netinet6/nd6.h
+++ b/sys/netinet6/nd6.h
@@ -125,7 +125,7 @@ struct in6_ndireq {
((MAX_RANDOM_FACTOR - MIN_RANDOM_FACTOR) * (x >> 10)))) /1000)
struct nd_defrouter {
- LIST_ENTRY(struct nd_defrouter) dr_entry;
+ LIST_ENTRY(nd_defrouter) dr_entry;
struct in6_addr rtaddr;
u_char flags;
u_short rtlifetime;
@@ -135,7 +135,7 @@ struct nd_defrouter {
struct nd_prefix {
struct ifnet *ndpr_ifp;
- LIST_ENTRY(struct nd_prefix) ndpr_entry;
+ LIST_ENTRY(nd_prefix) ndpr_entry;
struct sockaddr_in6 ndpr_prefix; /* prefix */
struct in6_addr ndpr_mask; /* netmask derived from the prefix */
struct in6_addr ndpr_addr; /* address that is derived from the prefix */
@@ -145,7 +145,7 @@ struct nd_prefix {
time_t ndpr_preferred; /* preferred time of the prefix */
struct prf_ra ndpr_flags;
/* list of routers that advertise the prefix: */
- LIST_HEAD(pr_rtrhead, struct nd_pfxrouter) ndpr_advrtrs;
+ LIST_HEAD(pr_rtrhead, nd_pfxrouter) ndpr_advrtrs;
u_char ndpr_plen;
struct ndpr_stateflags {
/* if this prefix can be regarded as on-link */
@@ -196,12 +196,12 @@ struct inet6_ndpr_msghdr {
#define ndpr2ifpr(ndpr) ((struct ifprefix *)(ndpr))
struct nd_pfxrouter {
- LIST_ENTRY(struct nd_pfxrouter) pfr_entry;
+ LIST_ENTRY(nd_pfxrouter) pfr_entry;
struct nd_defrouter *router;
};
-LIST_HEAD(nd_drhead, struct nd_defrouter);
-LIST_HEAD(nd_prhead, struct nd_prefix);
+LIST_HEAD(nd_drhead, nd_defrouter);
+LIST_HEAD(nd_prhead, nd_prefix);
/* nd6.c */
extern int nd6_prune;
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c
index 3ba9535..9c16e1e 100644
--- a/sys/netinet6/nd6_nbr.c
+++ b/sys/netinet6/nd6_nbr.c
@@ -796,9 +796,9 @@ nd6_ifptomac(ifp)
}
}
-TAILQ_HEAD(dadq_head, struct dadq);
+TAILQ_HEAD(dadq_head, dadq);
struct dadq {
- TAILQ_ENTRY(struct dadq) dad_list;
+ TAILQ_ENTRY(dadq) dad_list;
struct ifaddr *dad_ifa;
int dad_count; /* max NS to send */
int dad_ns_ocount; /* NS sent so far */
diff --git a/sys/netkey/key.c b/sys/netkey/key.c
index 2e348d1..f00792d 100644
--- a/sys/netkey/key.c
+++ b/sys/netkey/key.c
@@ -110,12 +110,12 @@ static int key_blockacq_lifetime = 20; /* lifetime for blocking SADB_ACQUIRE.*/
static u_int32_t acq_seq = 0;
static int key_tick_init_random = 0;
-static LIST_HEAD(_sptree, struct secpolicy) sptree[IPSEC_DIR_MAX]; /* SPD */
-static LIST_HEAD(_sahtree, struct secashead) sahtree; /* SAD */
-static LIST_HEAD(_regtree, struct secreg) regtree[SADB_SATYPE_MAX + 1];
+static LIST_HEAD(_sptree, secpolicy) sptree[IPSEC_DIR_MAX]; /* SPD */
+static LIST_HEAD(_sahtree, secashead) sahtree; /* SAD */
+static LIST_HEAD(_regtree, secreg) regtree[SADB_SATYPE_MAX + 1];
/* registed list */
#ifndef IPSEC_NONBLOCK_ACQUIRE
-static LIST_HEAD(_acqtree, struct secacq) acqtree; /* acquiring list */
+static LIST_HEAD(_acqtree, secacq) acqtree; /* acquiring list */
#endif
struct key_cb key_cb;
diff --git a/sys/netkey/keydb.h b/sys/netkey/keydb.h
index 608c10d..af4b3ba 100644
--- a/sys/netkey/keydb.h
+++ b/sys/netkey/keydb.h
@@ -45,14 +45,14 @@ struct secasindex {
/* Security Association Data Base */
struct secashead {
- LIST_ENTRY(struct secashead) chain;
+ LIST_ENTRY(secashead) chain;
struct secasindex saidx;
struct secpolicyindex *owner; /* Indicate it who owned its SA. */
/* If NULL then it's shared SA */
u_int8_t state; /* MATURE or DEAD. */
- LIST_HEAD(_satree, struct secasvar) savtree[SADB_SASTATE_MAX+1];
+ LIST_HEAD(_satree, secasvar) savtree[SADB_SASTATE_MAX+1];
/* SA chain */
/* The first of this list is newer SA */
@@ -61,7 +61,7 @@ struct secashead {
/* Security Association */
struct secasvar {
- LIST_ENTRY(struct secasvar) chain;
+ LIST_ENTRY(secasvar) chain;
int refcnt; /* reference count */
u_int8_t state; /* Status of this Association */
@@ -102,7 +102,7 @@ struct secreplay {
/* socket table due to send PF_KEY messages. */
struct secreg {
- LIST_ENTRY(struct secreg) chain;
+ LIST_ENTRY(secreg) chain;
struct socket *so;
};
@@ -110,7 +110,7 @@ struct secreg {
#ifndef IPSEC_NONBLOCK_ACQUIRE
/* acquiring list table. */
struct secacq {
- LIST_ENTRY(struct secacq) chain;
+ LIST_ENTRY(secacq) chain;
struct secasindex saidx;
diff --git a/sys/netnatm/natm.h b/sys/netnatm/natm.h
index eade047..431eb35 100644
--- a/sys/netnatm/natm.h
+++ b/sys/netnatm/natm.h
@@ -75,7 +75,7 @@ struct sockaddr_natm {
*/
struct natmpcb {
- LIST_ENTRY(struct natmpcb) pcblist; /* list pointers */
+ LIST_ENTRY(natmpcb) pcblist; /* list pointers */
u_int npcb_inq; /* # of our pkts in proto q */
struct socket *npcb_socket; /* backpointer to socket */
struct ifnet *npcb_ifp; /* pointer to hardware */
@@ -106,7 +106,7 @@ struct natmpcb {
#define NPCB_RAWCC (1024*1024) /* 1MB */
-LIST_HEAD(npcblist, struct natmpcb);
+LIST_HEAD(npcblist, natmpcb);
/* global data structures */
diff --git a/sys/netncp/ncp_conn.c b/sys/netncp/ncp_conn.c
index b13688b..026f262 100644
--- a/sys/netncp/ncp_conn.c
+++ b/sys/netncp/ncp_conn.c
@@ -44,7 +44,7 @@
#include <netncp/ncp_subr.h>
#include <netncp/ncp_conn.h>
-SLIST_HEAD(ncp_handle_head, struct ncp_handle);
+SLIST_HEAD(ncp_handle_head,ncp_handle);
int ncp_burst_enabled = 1;
@@ -248,7 +248,7 @@ ncp_conn_free(struct ncp_conn *ncp) {
ncp_conn_unlocklist(ncp->procp);
return 0;
}
- SLIST_REMOVE(&conn_list, ncp, struct ncp_conn, nc_next);
+ SLIST_REMOVE(&conn_list, ncp, ncp_conn, nc_next);
ncp_conn_cnt--;
ncp_conn_unlocklist(ncp->procp);
if (ncp->li.user) free(ncp->li.user, M_NCPDATA);
@@ -434,7 +434,7 @@ ncp_conn_puthandle(struct ncp_handle *handle, struct proc *p, int force) {
refp->nh_ref = 0;
}
if (refp->nh_ref == 0) {
- SLIST_REMOVE(&lhlist, refp, struct ncp_handle, nh_next);
+ SLIST_REMOVE(&lhlist, refp, ncp_handle, nh_next);
FREE(refp, M_NCPDATA);
}
lockmgr(&lhlock, LK_RELEASE, 0, p);
@@ -471,7 +471,7 @@ ncp_conn_putprochandles(struct proc *p) {
if (hp->nh_proc != p) continue;
haveone = 1;
hp->nh_conn->ref_cnt -= hp->nh_ref;
- SLIST_REMOVE(&lhlist, hp, struct ncp_handle, nh_next);
+ SLIST_REMOVE(&lhlist, hp, ncp_handle, nh_next);
FREE(hp, M_NCPDATA);
}
lockmgr(&lhlock, LK_RELEASE, 0, p);
diff --git a/sys/netncp/ncp_conn.h b/sys/netncp/ncp_conn.h
index 2cbb97c..850e5e7 100644
--- a/sys/netncp/ncp_conn.h
+++ b/sys/netncp/ncp_conn.h
@@ -144,7 +144,7 @@ struct ncp_conn_stat {
struct socket;
struct u_cred;
-SLIST_HEAD(ncp_conn_head, struct ncp_conn);
+SLIST_HEAD(ncp_conn_head,ncp_conn);
struct ncp_rq;
struct ncp_conn;
@@ -154,7 +154,7 @@ struct ncp_conn;
* This gives us a freedom in maintance of underlying connections.
*/
struct ncp_handle {
- SLIST_ENTRY(struct ncp_handle) nh_next;
+ SLIST_ENTRY(ncp_handle) nh_next;
int nh_id; /* handle id */
struct ncp_conn*nh_conn; /* which conn we are refernce */
struct proc * nh_proc; /* who owns the handle */
@@ -165,7 +165,7 @@ struct ncp_handle {
* Describes any connection to server
*/
struct ncp_conn {
- SLIST_ENTRY(struct ncp_conn) nc_next;
+ SLIST_ENTRY(ncp_conn) nc_next;
struct ncp_conn_args li;
struct ucred *nc_owner;
gid_t nc_group;
@@ -176,7 +176,7 @@ struct ncp_conn {
struct socket *msg_so;
struct socket *bc_so;
int ref_cnt; /* how many handles leased */
- SLIST_HEAD(ncp_ref_hd, struct ncp_ref) ref_list;/* list of handles */
+ SLIST_HEAD(ncp_ref_hd,ncp_ref) ref_list;/* list of handles */
struct lock nc_lock; /* excl locks */
int nc_lwant; /* number of wanted locks */
struct proc *procp; /* pid currently operates */
diff --git a/sys/netncp/ncp_rcfile.h b/sys/netncp/ncp_rcfile.h
index dcebb3a..815b8dd 100644
--- a/sys/netncp/ncp_rcfile.h
+++ b/sys/netncp/ncp_rcfile.h
@@ -36,20 +36,20 @@
#include <sys/queue.h>
struct rckey {
- SLIST_ENTRY(struct rckey) rk_next;
+ SLIST_ENTRY(rckey) rk_next;
char *rk_name;
char *rk_value;
};
struct rcsection {
- SLIST_ENTRY(struct rcsection) rs_next;
- SLIST_HEAD(rckey_head, struct rckey) rs_keys;
+ SLIST_ENTRY(rcsection) rs_next;
+ SLIST_HEAD(rckey_head,rckey) rs_keys;
char *rs_name;
};
struct rcfile {
- SLIST_ENTRY(struct rcfile) rf_next;
- SLIST_HEAD(rcsec_head, struct rcsection) rf_sect;
+ SLIST_ENTRY(rcfile) rf_next;
+ SLIST_HEAD(rcsec_head, rcsection) rf_sect;
char *rf_name;
FILE *rf_f;
};
diff --git a/sys/nfs/nfs.h b/sys/nfs/nfs.h
index 475dbd2..e07a4f5 100644
--- a/sys/nfs/nfs.h
+++ b/sys/nfs/nfs.h
@@ -333,7 +333,7 @@ struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
* Nfs outstanding request list element
*/
struct nfsreq {
- TAILQ_ENTRY(struct nfsreq) r_chain;
+ TAILQ_ENTRY(nfsreq) r_chain;
struct mbuf *r_mreq;
struct mbuf *r_mrep;
struct mbuf *r_md;
@@ -353,7 +353,7 @@ struct nfsreq {
/*
* Queue head for nfsreq's
*/
-extern TAILQ_HEAD(nfs_reqq, struct nfsreq) nfs_reqq;
+extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq;
/* Flag values for r_flags */
#define R_TIMING 0x01 /* timing request (in mntp) */
@@ -398,8 +398,8 @@ union nethostaddr {
};
struct nfsuid {
- TAILQ_ENTRY(struct nfsuid) nu_lru; /* LRU chain */
- LIST_ENTRY(struct nfsuid) nu_hash; /* Hash list */
+ TAILQ_ENTRY(nfsuid) nu_lru; /* LRU chain */
+ LIST_ENTRY(nfsuid) nu_hash; /* Hash list */
int nu_flag; /* Flags */
union nethostaddr nu_haddr; /* Host addr. for dgram sockets */
struct ucred nu_cr; /* Cred uid mapped to */
@@ -417,20 +417,20 @@ struct nfsuid {
#define NU_NETFAM(u) (((u)->nu_flag & NU_INETADDR) ? AF_INET : AF_ISO)
struct nfsrv_rec {
- STAILQ_ENTRY(struct nfsrv_rec) nr_link;
+ STAILQ_ENTRY(nfsrv_rec) nr_link;
struct sockaddr *nr_address;
struct mbuf *nr_packet;
};
struct nfssvc_sock {
- TAILQ_ENTRY(struct nfssvc_sock) ns_chain;/* List of all nfssvc_sock's */
- TAILQ_HEAD(, struct nfsuid) ns_uidlruhead;
+ TAILQ_ENTRY(nfssvc_sock) ns_chain; /* List of all nfssvc_sock's */
+ TAILQ_HEAD(, nfsuid) ns_uidlruhead;
struct file *ns_fp;
struct socket *ns_so;
struct sockaddr *ns_nam;
struct mbuf *ns_raw;
struct mbuf *ns_rawend;
- STAILQ_HEAD(, struct nfsrv_rec) ns_rec;
+ STAILQ_HEAD(, nfsrv_rec) ns_rec;
struct mbuf *ns_frag;
int ns_flag;
int ns_solock;
@@ -438,9 +438,9 @@ struct nfssvc_sock {
int ns_reclen;
int ns_numuids;
u_int32_t ns_sref;
- LIST_HEAD(, struct nfsrv_descript) ns_tq; /* Write gather lists */
- LIST_HEAD(, struct nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
- LIST_HEAD(nfsrvw_delayhash, struct nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
+ LIST_HEAD(, nfsrv_descript) ns_tq; /* Write gather lists */
+ LIST_HEAD(, nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
+ LIST_HEAD(nfsrvw_delayhash, nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
};
/* Bits for "ns_flag" */
@@ -452,7 +452,7 @@ struct nfssvc_sock {
#define SLP_LASTFRAG 0x20
#define SLP_ALLFLAGS 0xff
-extern TAILQ_HEAD(nfssvc_sockhead, struct nfssvc_sock) nfssvc_sockhead;
+extern TAILQ_HEAD(nfssvc_sockhead, nfssvc_sock) nfssvc_sockhead;
extern int nfssvc_sockhead_flag;
#define SLP_INIT 0x01
#define SLP_WANTINIT 0x02
@@ -461,7 +461,7 @@ extern int nfssvc_sockhead_flag;
* One of these structures is allocated for each nfsd.
*/
struct nfsd {
- TAILQ_ENTRY(struct nfsd) nfsd_chain; /* List of all nfsd's */
+ TAILQ_ENTRY(nfsd) nfsd_chain; /* List of all nfsd's */
int nfsd_flag; /* NFSD_ flags */
struct nfssvc_sock *nfsd_slp; /* Current socket */
int nfsd_authlen; /* Authenticator len */
@@ -486,9 +486,9 @@ struct nfsrv_descript {
u_quad_t nd_time; /* Write deadline (usec) */
off_t nd_off; /* Start byte offset */
off_t nd_eoff; /* and end byte offset */
- LIST_ENTRY(struct nfsrv_descript) nd_hash; /* Hash list */
- LIST_ENTRY(struct nfsrv_descript) nd_tq; /* and timer list */
- LIST_HEAD(, struct nfsrv_descript) nd_coalesce; /* coalesced writes */
+ LIST_ENTRY(nfsrv_descript) nd_hash; /* Hash list */
+ LIST_ENTRY(nfsrv_descript) nd_tq; /* and timer list */
+ LIST_HEAD(,nfsrv_descript) nd_coalesce; /* coalesced writes */
struct mbuf *nd_mrep; /* Request mbuf list */
struct mbuf *nd_md; /* Current dissect mbuf */
struct mbuf *nd_mreq; /* Reply mbuf list */
@@ -518,7 +518,7 @@ struct nfsrv_descript {
#define ND_KERBFULL 0x40
#define ND_KERBAUTH (ND_KERBNICK | ND_KERBFULL)
-extern TAILQ_HEAD(nfsd_head, struct nfsd) nfsd_head;
+extern TAILQ_HEAD(nfsd_head, nfsd) nfsd_head;
extern int nfsd_head_flag;
#define NFSD_CHECKSLP 0x01
diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c
index fab9912..70e871f 100644
--- a/sys/nfs/nfs_common.c
+++ b/sys/nfs/nfs_common.c
@@ -556,7 +556,7 @@ extern u_long nfsnodehash;
struct nfssvc_args;
extern int nfssvc(struct proc *, struct nfssvc_args *, int *);
-LIST_HEAD(nfsnodehashhead, struct nfsnode);
+LIST_HEAD(nfsnodehashhead, nfsnode);
int nfs_webnamei __P((struct nameidata *, struct vnode *, struct proc *));
diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c
index 8ed2830..1de8739 100644
--- a/sys/nfs/nfs_node.c
+++ b/sys/nfs/nfs_node.c
@@ -55,7 +55,7 @@
#include <nfs/nfsmount.h>
static vm_zone_t nfsnode_zone;
-static LIST_HEAD(nfsnodehashhead, struct nfsnode) *nfsnodehashtbl;
+static LIST_HEAD(nfsnodehashhead, nfsnode) *nfsnodehashtbl;
static u_long nfsnodehash;
#define TRUE 1
diff --git a/sys/nfs/nfs_srvcache.c b/sys/nfs/nfs_srvcache.c
index 07808c4..9eb168f 100644
--- a/sys/nfs/nfs_srvcache.c
+++ b/sys/nfs/nfs_srvcache.c
@@ -64,8 +64,8 @@ static long desirednfsrvcache = NFSRVCACHESIZ;
#define NFSRCHASH(xid) \
(&nfsrvhashtbl[((xid) + ((xid) >> 24)) & nfsrvhash])
-static LIST_HEAD(nfsrvhash, struct nfsrvcache) *nfsrvhashtbl;
-static TAILQ_HEAD(nfsrvlru, struct nfsrvcache) nfsrvlruhead;
+static LIST_HEAD(nfsrvhash, nfsrvcache) *nfsrvhashtbl;
+static TAILQ_HEAD(nfsrvlru, nfsrvcache) nfsrvlruhead;
static u_long nfsrvhash;
#define TRUE 1
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index fab9912..70e871f 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -556,7 +556,7 @@ extern u_long nfsnodehash;
struct nfssvc_args;
extern int nfssvc(struct proc *, struct nfssvc_args *, int *);
-LIST_HEAD(nfsnodehashhead, struct nfsnode);
+LIST_HEAD(nfsnodehashhead, nfsnode);
int nfs_webnamei __P((struct nameidata *, struct vnode *, struct proc *));
diff --git a/sys/nfs/nfsmount.h b/sys/nfs/nfsmount.h
index 8b737f7..8efd1df 100644
--- a/sys/nfs/nfsmount.h
+++ b/sys/nfs/nfsmount.h
@@ -75,7 +75,7 @@ struct nfsmount {
int nm_acdirmax; /* Directory attr cache max lifetime */
int nm_acregmin; /* Reg file attr cache min lifetime */
int nm_acregmax; /* Reg file attr cache max lifetime */
- CIRCLEQ_HEAD(, struct nfsnode) nm_timerhead; /* Head of lease timer queue */
+ CIRCLEQ_HEAD(, nfsnode) nm_timerhead; /* Head of lease timer queue */
struct vnode *nm_inprog; /* Vnode in prog by nqnfs_clientd() */
uid_t nm_authuid; /* Uid for authenticator */
int nm_authtype; /* Authenticator type */
@@ -86,9 +86,9 @@ struct nfsmount {
u_char nm_verf[NFSX_V3WRITEVERF]; /* V3 write verifier */
NFSKERBKEY_T nm_key; /* and the session key */
int nm_numuids; /* Number of nfsuid mappings */
- TAILQ_HEAD(, struct nfsuid) nm_uidlruhead; /* Lists of nfsuid mappings */
- LIST_HEAD(, struct nfsuid) nm_uidhashtbl[NFS_MUIDHASHSIZ];
- TAILQ_HEAD(, struct buf) nm_bufq; /* async io buffer queue */
+ TAILQ_HEAD(, nfsuid) nm_uidlruhead; /* Lists of nfsuid mappings */
+ LIST_HEAD(, nfsuid) nm_uidhashtbl[NFS_MUIDHASHSIZ];
+ TAILQ_HEAD(, buf) nm_bufq; /* async io buffer queue */
short nm_bufqlen; /* number of buffers in queue */
short nm_bufqwant; /* process wants to add to the queue */
int nm_bufqiods; /* number of iods processing queue */
diff --git a/sys/nfs/nfsnode.h b/sys/nfs/nfsnode.h
index 12b717b..dac6020 100644
--- a/sys/nfs/nfsnode.h
+++ b/sys/nfs/nfsnode.h
@@ -67,7 +67,7 @@ struct sillyrename {
#define NFSNUMCOOKIES 31
struct nfsdmap {
- LIST_ENTRY(struct nfsdmap) ndm_list;
+ LIST_ENTRY(nfsdmap) ndm_list;
int ndm_eocookie;
nfsuint64 ndm_cookies[NFSNUMCOOKIES];
};
@@ -86,8 +86,8 @@ struct nfsdmap {
* be well aligned and, therefore, tightly packed.
*/
struct nfsnode {
- LIST_ENTRY(struct nfsnode) n_hash; /* Hash chain */
- CIRCLEQ_ENTRY(struct nfsnode) n_timer; /* Nqnfs timer chain */
+ LIST_ENTRY(nfsnode) n_hash; /* Hash chain */
+ CIRCLEQ_ENTRY(nfsnode) n_timer; /* Nqnfs timer chain */
u_quad_t n_size; /* Current size of file */
u_quad_t n_brev; /* Modify rev when cached */
u_quad_t n_lrev; /* Modify rev for lease */
@@ -113,7 +113,7 @@ struct nfsnode {
} n_un2;
union {
struct sillyrename *nf_silly; /* Ptr to silly rename struct */
- LIST_HEAD(, struct nfsdmap) nd_cook; /* cookies */
+ LIST_HEAD(, nfsdmap) nd_cook; /* cookies */
} n_un3;
short n_fhsize; /* size in bytes, of fh */
short n_flag; /* Flag for locking.. */
@@ -153,7 +153,7 @@ struct nfsnode {
/*
* Queue head for nfsiod's
*/
-extern TAILQ_HEAD(nfs_bufq, struct buf) nfs_bufq;
+extern TAILQ_HEAD(nfs_bufq, buf) nfs_bufq;
extern struct proc *nfs_iodwant[NFS_MAXASYNCDAEMON];
extern struct nfsmount *nfs_iodmount[NFS_MAXASYNCDAEMON];
diff --git a/sys/nfs/nfsrvcache.h b/sys/nfs/nfsrvcache.h
index 93ce6ce..eec5850 100644
--- a/sys/nfs/nfsrvcache.h
+++ b/sys/nfs/nfsrvcache.h
@@ -50,8 +50,8 @@
#define NFSRVCACHESIZ 64
struct nfsrvcache {
- TAILQ_ENTRY(struct nfsrvcache) rc_lru; /* LRU chain */
- LIST_ENTRY(struct nfsrvcache) rc_hash; /* Hash chain */
+ TAILQ_ENTRY(nfsrvcache) rc_lru; /* LRU chain */
+ LIST_ENTRY(nfsrvcache) rc_hash; /* Hash chain */
u_int32_t rc_xid; /* rpc id number */
union {
struct mbuf *ru_repmb; /* Reply mbuf list OR */
diff --git a/sys/nfs/nqnfs.h b/sys/nfs/nqnfs.h
index a76b94b..15b5af5 100644
--- a/sys/nfs/nqnfs.h
+++ b/sys/nfs/nqnfs.h
@@ -104,8 +104,8 @@ struct nqhost {
#define lph_inetaddr lph_un.un_udp.udp_haddr.had_inetaddr
struct nqlease {
- LIST_ENTRY(struct nqlease) lc_hash; /* Fhandle hash list */
- CIRCLEQ_ENTRY(struct nqlease) lc_timer; /* Timer queue list */
+ LIST_ENTRY(nqlease) lc_hash; /* Fhandle hash list */
+ CIRCLEQ_ENTRY(nqlease) lc_timer; /* Timer queue list */
time_t lc_expiry; /* Expiry time (sec) */
struct nqhost lc_host; /* Host that got lease */
struct nqm *lc_morehosts; /* Other hosts that share read lease */
@@ -173,14 +173,14 @@ struct nqm {
/*
* List head for timer queue.
*/
-extern CIRCLEQ_HEAD(nqtimerhead, struct nqlease) nqtimerhead;
+extern CIRCLEQ_HEAD(nqtimerhead, nqlease) nqtimerhead;
/*
* List head for the file handle hash table.
*/
#define NQFHHASH(f) \
(&nqfhhashtbl[(*((u_int32_t *)(f))) & nqfhhash])
-extern LIST_HEAD(nqfhhashhead, struct nqlease) *nqfhhashtbl;
+extern LIST_HEAD(nqfhhashhead, nqlease) *nqfhhashtbl;
extern u_long nqfhhash;
/*
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h
index 475dbd2..e07a4f5 100644
--- a/sys/nfsclient/nfs.h
+++ b/sys/nfsclient/nfs.h
@@ -333,7 +333,7 @@ struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
* Nfs outstanding request list element
*/
struct nfsreq {
- TAILQ_ENTRY(struct nfsreq) r_chain;
+ TAILQ_ENTRY(nfsreq) r_chain;
struct mbuf *r_mreq;
struct mbuf *r_mrep;
struct mbuf *r_md;
@@ -353,7 +353,7 @@ struct nfsreq {
/*
* Queue head for nfsreq's
*/
-extern TAILQ_HEAD(nfs_reqq, struct nfsreq) nfs_reqq;
+extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq;
/* Flag values for r_flags */
#define R_TIMING 0x01 /* timing request (in mntp) */
@@ -398,8 +398,8 @@ union nethostaddr {
};
struct nfsuid {
- TAILQ_ENTRY(struct nfsuid) nu_lru; /* LRU chain */
- LIST_ENTRY(struct nfsuid) nu_hash; /* Hash list */
+ TAILQ_ENTRY(nfsuid) nu_lru; /* LRU chain */
+ LIST_ENTRY(nfsuid) nu_hash; /* Hash list */
int nu_flag; /* Flags */
union nethostaddr nu_haddr; /* Host addr. for dgram sockets */
struct ucred nu_cr; /* Cred uid mapped to */
@@ -417,20 +417,20 @@ struct nfsuid {
#define NU_NETFAM(u) (((u)->nu_flag & NU_INETADDR) ? AF_INET : AF_ISO)
struct nfsrv_rec {
- STAILQ_ENTRY(struct nfsrv_rec) nr_link;
+ STAILQ_ENTRY(nfsrv_rec) nr_link;
struct sockaddr *nr_address;
struct mbuf *nr_packet;
};
struct nfssvc_sock {
- TAILQ_ENTRY(struct nfssvc_sock) ns_chain;/* List of all nfssvc_sock's */
- TAILQ_HEAD(, struct nfsuid) ns_uidlruhead;
+ TAILQ_ENTRY(nfssvc_sock) ns_chain; /* List of all nfssvc_sock's */
+ TAILQ_HEAD(, nfsuid) ns_uidlruhead;
struct file *ns_fp;
struct socket *ns_so;
struct sockaddr *ns_nam;
struct mbuf *ns_raw;
struct mbuf *ns_rawend;
- STAILQ_HEAD(, struct nfsrv_rec) ns_rec;
+ STAILQ_HEAD(, nfsrv_rec) ns_rec;
struct mbuf *ns_frag;
int ns_flag;
int ns_solock;
@@ -438,9 +438,9 @@ struct nfssvc_sock {
int ns_reclen;
int ns_numuids;
u_int32_t ns_sref;
- LIST_HEAD(, struct nfsrv_descript) ns_tq; /* Write gather lists */
- LIST_HEAD(, struct nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
- LIST_HEAD(nfsrvw_delayhash, struct nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
+ LIST_HEAD(, nfsrv_descript) ns_tq; /* Write gather lists */
+ LIST_HEAD(, nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
+ LIST_HEAD(nfsrvw_delayhash, nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
};
/* Bits for "ns_flag" */
@@ -452,7 +452,7 @@ struct nfssvc_sock {
#define SLP_LASTFRAG 0x20
#define SLP_ALLFLAGS 0xff
-extern TAILQ_HEAD(nfssvc_sockhead, struct nfssvc_sock) nfssvc_sockhead;
+extern TAILQ_HEAD(nfssvc_sockhead, nfssvc_sock) nfssvc_sockhead;
extern int nfssvc_sockhead_flag;
#define SLP_INIT 0x01
#define SLP_WANTINIT 0x02
@@ -461,7 +461,7 @@ extern int nfssvc_sockhead_flag;
* One of these structures is allocated for each nfsd.
*/
struct nfsd {
- TAILQ_ENTRY(struct nfsd) nfsd_chain; /* List of all nfsd's */
+ TAILQ_ENTRY(nfsd) nfsd_chain; /* List of all nfsd's */
int nfsd_flag; /* NFSD_ flags */
struct nfssvc_sock *nfsd_slp; /* Current socket */
int nfsd_authlen; /* Authenticator len */
@@ -486,9 +486,9 @@ struct nfsrv_descript {
u_quad_t nd_time; /* Write deadline (usec) */
off_t nd_off; /* Start byte offset */
off_t nd_eoff; /* and end byte offset */
- LIST_ENTRY(struct nfsrv_descript) nd_hash; /* Hash list */
- LIST_ENTRY(struct nfsrv_descript) nd_tq; /* and timer list */
- LIST_HEAD(, struct nfsrv_descript) nd_coalesce; /* coalesced writes */
+ LIST_ENTRY(nfsrv_descript) nd_hash; /* Hash list */
+ LIST_ENTRY(nfsrv_descript) nd_tq; /* and timer list */
+ LIST_HEAD(,nfsrv_descript) nd_coalesce; /* coalesced writes */
struct mbuf *nd_mrep; /* Request mbuf list */
struct mbuf *nd_md; /* Current dissect mbuf */
struct mbuf *nd_mreq; /* Reply mbuf list */
@@ -518,7 +518,7 @@ struct nfsrv_descript {
#define ND_KERBFULL 0x40
#define ND_KERBAUTH (ND_KERBNICK | ND_KERBFULL)
-extern TAILQ_HEAD(nfsd_head, struct nfsd) nfsd_head;
+extern TAILQ_HEAD(nfsd_head, nfsd) nfsd_head;
extern int nfsd_head_flag;
#define NFSD_CHECKSLP 0x01
diff --git a/sys/nfsclient/nfs_node.c b/sys/nfsclient/nfs_node.c
index 8ed2830..1de8739 100644
--- a/sys/nfsclient/nfs_node.c
+++ b/sys/nfsclient/nfs_node.c
@@ -55,7 +55,7 @@
#include <nfs/nfsmount.h>
static vm_zone_t nfsnode_zone;
-static LIST_HEAD(nfsnodehashhead, struct nfsnode) *nfsnodehashtbl;
+static LIST_HEAD(nfsnodehashhead, nfsnode) *nfsnodehashtbl;
static u_long nfsnodehash;
#define TRUE 1
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c
index fab9912..70e871f 100644
--- a/sys/nfsclient/nfs_subs.c
+++ b/sys/nfsclient/nfs_subs.c
@@ -556,7 +556,7 @@ extern u_long nfsnodehash;
struct nfssvc_args;
extern int nfssvc(struct proc *, struct nfssvc_args *, int *);
-LIST_HEAD(nfsnodehashhead, struct nfsnode);
+LIST_HEAD(nfsnodehashhead, nfsnode);
int nfs_webnamei __P((struct nameidata *, struct vnode *, struct proc *));
diff --git a/sys/nfsclient/nfsargs.h b/sys/nfsclient/nfsargs.h
index 475dbd2..e07a4f5 100644
--- a/sys/nfsclient/nfsargs.h
+++ b/sys/nfsclient/nfsargs.h
@@ -333,7 +333,7 @@ struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
* Nfs outstanding request list element
*/
struct nfsreq {
- TAILQ_ENTRY(struct nfsreq) r_chain;
+ TAILQ_ENTRY(nfsreq) r_chain;
struct mbuf *r_mreq;
struct mbuf *r_mrep;
struct mbuf *r_md;
@@ -353,7 +353,7 @@ struct nfsreq {
/*
* Queue head for nfsreq's
*/
-extern TAILQ_HEAD(nfs_reqq, struct nfsreq) nfs_reqq;
+extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq;
/* Flag values for r_flags */
#define R_TIMING 0x01 /* timing request (in mntp) */
@@ -398,8 +398,8 @@ union nethostaddr {
};
struct nfsuid {
- TAILQ_ENTRY(struct nfsuid) nu_lru; /* LRU chain */
- LIST_ENTRY(struct nfsuid) nu_hash; /* Hash list */
+ TAILQ_ENTRY(nfsuid) nu_lru; /* LRU chain */
+ LIST_ENTRY(nfsuid) nu_hash; /* Hash list */
int nu_flag; /* Flags */
union nethostaddr nu_haddr; /* Host addr. for dgram sockets */
struct ucred nu_cr; /* Cred uid mapped to */
@@ -417,20 +417,20 @@ struct nfsuid {
#define NU_NETFAM(u) (((u)->nu_flag & NU_INETADDR) ? AF_INET : AF_ISO)
struct nfsrv_rec {
- STAILQ_ENTRY(struct nfsrv_rec) nr_link;
+ STAILQ_ENTRY(nfsrv_rec) nr_link;
struct sockaddr *nr_address;
struct mbuf *nr_packet;
};
struct nfssvc_sock {
- TAILQ_ENTRY(struct nfssvc_sock) ns_chain;/* List of all nfssvc_sock's */
- TAILQ_HEAD(, struct nfsuid) ns_uidlruhead;
+ TAILQ_ENTRY(nfssvc_sock) ns_chain; /* List of all nfssvc_sock's */
+ TAILQ_HEAD(, nfsuid) ns_uidlruhead;
struct file *ns_fp;
struct socket *ns_so;
struct sockaddr *ns_nam;
struct mbuf *ns_raw;
struct mbuf *ns_rawend;
- STAILQ_HEAD(, struct nfsrv_rec) ns_rec;
+ STAILQ_HEAD(, nfsrv_rec) ns_rec;
struct mbuf *ns_frag;
int ns_flag;
int ns_solock;
@@ -438,9 +438,9 @@ struct nfssvc_sock {
int ns_reclen;
int ns_numuids;
u_int32_t ns_sref;
- LIST_HEAD(, struct nfsrv_descript) ns_tq; /* Write gather lists */
- LIST_HEAD(, struct nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
- LIST_HEAD(nfsrvw_delayhash, struct nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
+ LIST_HEAD(, nfsrv_descript) ns_tq; /* Write gather lists */
+ LIST_HEAD(, nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
+ LIST_HEAD(nfsrvw_delayhash, nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
};
/* Bits for "ns_flag" */
@@ -452,7 +452,7 @@ struct nfssvc_sock {
#define SLP_LASTFRAG 0x20
#define SLP_ALLFLAGS 0xff
-extern TAILQ_HEAD(nfssvc_sockhead, struct nfssvc_sock) nfssvc_sockhead;
+extern TAILQ_HEAD(nfssvc_sockhead, nfssvc_sock) nfssvc_sockhead;
extern int nfssvc_sockhead_flag;
#define SLP_INIT 0x01
#define SLP_WANTINIT 0x02
@@ -461,7 +461,7 @@ extern int nfssvc_sockhead_flag;
* One of these structures is allocated for each nfsd.
*/
struct nfsd {
- TAILQ_ENTRY(struct nfsd) nfsd_chain; /* List of all nfsd's */
+ TAILQ_ENTRY(nfsd) nfsd_chain; /* List of all nfsd's */
int nfsd_flag; /* NFSD_ flags */
struct nfssvc_sock *nfsd_slp; /* Current socket */
int nfsd_authlen; /* Authenticator len */
@@ -486,9 +486,9 @@ struct nfsrv_descript {
u_quad_t nd_time; /* Write deadline (usec) */
off_t nd_off; /* Start byte offset */
off_t nd_eoff; /* and end byte offset */
- LIST_ENTRY(struct nfsrv_descript) nd_hash; /* Hash list */
- LIST_ENTRY(struct nfsrv_descript) nd_tq; /* and timer list */
- LIST_HEAD(, struct nfsrv_descript) nd_coalesce; /* coalesced writes */
+ LIST_ENTRY(nfsrv_descript) nd_hash; /* Hash list */
+ LIST_ENTRY(nfsrv_descript) nd_tq; /* and timer list */
+ LIST_HEAD(,nfsrv_descript) nd_coalesce; /* coalesced writes */
struct mbuf *nd_mrep; /* Request mbuf list */
struct mbuf *nd_md; /* Current dissect mbuf */
struct mbuf *nd_mreq; /* Reply mbuf list */
@@ -518,7 +518,7 @@ struct nfsrv_descript {
#define ND_KERBFULL 0x40
#define ND_KERBAUTH (ND_KERBNICK | ND_KERBFULL)
-extern TAILQ_HEAD(nfsd_head, struct nfsd) nfsd_head;
+extern TAILQ_HEAD(nfsd_head, nfsd) nfsd_head;
extern int nfsd_head_flag;
#define NFSD_CHECKSLP 0x01
diff --git a/sys/nfsclient/nfsmount.h b/sys/nfsclient/nfsmount.h
index 8b737f7..8efd1df 100644
--- a/sys/nfsclient/nfsmount.h
+++ b/sys/nfsclient/nfsmount.h
@@ -75,7 +75,7 @@ struct nfsmount {
int nm_acdirmax; /* Directory attr cache max lifetime */
int nm_acregmin; /* Reg file attr cache min lifetime */
int nm_acregmax; /* Reg file attr cache max lifetime */
- CIRCLEQ_HEAD(, struct nfsnode) nm_timerhead; /* Head of lease timer queue */
+ CIRCLEQ_HEAD(, nfsnode) nm_timerhead; /* Head of lease timer queue */
struct vnode *nm_inprog; /* Vnode in prog by nqnfs_clientd() */
uid_t nm_authuid; /* Uid for authenticator */
int nm_authtype; /* Authenticator type */
@@ -86,9 +86,9 @@ struct nfsmount {
u_char nm_verf[NFSX_V3WRITEVERF]; /* V3 write verifier */
NFSKERBKEY_T nm_key; /* and the session key */
int nm_numuids; /* Number of nfsuid mappings */
- TAILQ_HEAD(, struct nfsuid) nm_uidlruhead; /* Lists of nfsuid mappings */
- LIST_HEAD(, struct nfsuid) nm_uidhashtbl[NFS_MUIDHASHSIZ];
- TAILQ_HEAD(, struct buf) nm_bufq; /* async io buffer queue */
+ TAILQ_HEAD(, nfsuid) nm_uidlruhead; /* Lists of nfsuid mappings */
+ LIST_HEAD(, nfsuid) nm_uidhashtbl[NFS_MUIDHASHSIZ];
+ TAILQ_HEAD(, buf) nm_bufq; /* async io buffer queue */
short nm_bufqlen; /* number of buffers in queue */
short nm_bufqwant; /* process wants to add to the queue */
int nm_bufqiods; /* number of iods processing queue */
diff --git a/sys/nfsclient/nfsnode.h b/sys/nfsclient/nfsnode.h
index 12b717b..dac6020 100644
--- a/sys/nfsclient/nfsnode.h
+++ b/sys/nfsclient/nfsnode.h
@@ -67,7 +67,7 @@ struct sillyrename {
#define NFSNUMCOOKIES 31
struct nfsdmap {
- LIST_ENTRY(struct nfsdmap) ndm_list;
+ LIST_ENTRY(nfsdmap) ndm_list;
int ndm_eocookie;
nfsuint64 ndm_cookies[NFSNUMCOOKIES];
};
@@ -86,8 +86,8 @@ struct nfsdmap {
* be well aligned and, therefore, tightly packed.
*/
struct nfsnode {
- LIST_ENTRY(struct nfsnode) n_hash; /* Hash chain */
- CIRCLEQ_ENTRY(struct nfsnode) n_timer; /* Nqnfs timer chain */
+ LIST_ENTRY(nfsnode) n_hash; /* Hash chain */
+ CIRCLEQ_ENTRY(nfsnode) n_timer; /* Nqnfs timer chain */
u_quad_t n_size; /* Current size of file */
u_quad_t n_brev; /* Modify rev when cached */
u_quad_t n_lrev; /* Modify rev for lease */
@@ -113,7 +113,7 @@ struct nfsnode {
} n_un2;
union {
struct sillyrename *nf_silly; /* Ptr to silly rename struct */
- LIST_HEAD(, struct nfsdmap) nd_cook; /* cookies */
+ LIST_HEAD(, nfsdmap) nd_cook; /* cookies */
} n_un3;
short n_fhsize; /* size in bytes, of fh */
short n_flag; /* Flag for locking.. */
@@ -153,7 +153,7 @@ struct nfsnode {
/*
* Queue head for nfsiod's
*/
-extern TAILQ_HEAD(nfs_bufq, struct buf) nfs_bufq;
+extern TAILQ_HEAD(nfs_bufq, buf) nfs_bufq;
extern struct proc *nfs_iodwant[NFS_MAXASYNCDAEMON];
extern struct nfsmount *nfs_iodmount[NFS_MAXASYNCDAEMON];
diff --git a/sys/nfsclient/nfsstats.h b/sys/nfsclient/nfsstats.h
index 475dbd2..e07a4f5 100644
--- a/sys/nfsclient/nfsstats.h
+++ b/sys/nfsclient/nfsstats.h
@@ -333,7 +333,7 @@ struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
* Nfs outstanding request list element
*/
struct nfsreq {
- TAILQ_ENTRY(struct nfsreq) r_chain;
+ TAILQ_ENTRY(nfsreq) r_chain;
struct mbuf *r_mreq;
struct mbuf *r_mrep;
struct mbuf *r_md;
@@ -353,7 +353,7 @@ struct nfsreq {
/*
* Queue head for nfsreq's
*/
-extern TAILQ_HEAD(nfs_reqq, struct nfsreq) nfs_reqq;
+extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq;
/* Flag values for r_flags */
#define R_TIMING 0x01 /* timing request (in mntp) */
@@ -398,8 +398,8 @@ union nethostaddr {
};
struct nfsuid {
- TAILQ_ENTRY(struct nfsuid) nu_lru; /* LRU chain */
- LIST_ENTRY(struct nfsuid) nu_hash; /* Hash list */
+ TAILQ_ENTRY(nfsuid) nu_lru; /* LRU chain */
+ LIST_ENTRY(nfsuid) nu_hash; /* Hash list */
int nu_flag; /* Flags */
union nethostaddr nu_haddr; /* Host addr. for dgram sockets */
struct ucred nu_cr; /* Cred uid mapped to */
@@ -417,20 +417,20 @@ struct nfsuid {
#define NU_NETFAM(u) (((u)->nu_flag & NU_INETADDR) ? AF_INET : AF_ISO)
struct nfsrv_rec {
- STAILQ_ENTRY(struct nfsrv_rec) nr_link;
+ STAILQ_ENTRY(nfsrv_rec) nr_link;
struct sockaddr *nr_address;
struct mbuf *nr_packet;
};
struct nfssvc_sock {
- TAILQ_ENTRY(struct nfssvc_sock) ns_chain;/* List of all nfssvc_sock's */
- TAILQ_HEAD(, struct nfsuid) ns_uidlruhead;
+ TAILQ_ENTRY(nfssvc_sock) ns_chain; /* List of all nfssvc_sock's */
+ TAILQ_HEAD(, nfsuid) ns_uidlruhead;
struct file *ns_fp;
struct socket *ns_so;
struct sockaddr *ns_nam;
struct mbuf *ns_raw;
struct mbuf *ns_rawend;
- STAILQ_HEAD(, struct nfsrv_rec) ns_rec;
+ STAILQ_HEAD(, nfsrv_rec) ns_rec;
struct mbuf *ns_frag;
int ns_flag;
int ns_solock;
@@ -438,9 +438,9 @@ struct nfssvc_sock {
int ns_reclen;
int ns_numuids;
u_int32_t ns_sref;
- LIST_HEAD(, struct nfsrv_descript) ns_tq; /* Write gather lists */
- LIST_HEAD(, struct nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
- LIST_HEAD(nfsrvw_delayhash, struct nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
+ LIST_HEAD(, nfsrv_descript) ns_tq; /* Write gather lists */
+ LIST_HEAD(, nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
+ LIST_HEAD(nfsrvw_delayhash, nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
};
/* Bits for "ns_flag" */
@@ -452,7 +452,7 @@ struct nfssvc_sock {
#define SLP_LASTFRAG 0x20
#define SLP_ALLFLAGS 0xff
-extern TAILQ_HEAD(nfssvc_sockhead, struct nfssvc_sock) nfssvc_sockhead;
+extern TAILQ_HEAD(nfssvc_sockhead, nfssvc_sock) nfssvc_sockhead;
extern int nfssvc_sockhead_flag;
#define SLP_INIT 0x01
#define SLP_WANTINIT 0x02
@@ -461,7 +461,7 @@ extern int nfssvc_sockhead_flag;
* One of these structures is allocated for each nfsd.
*/
struct nfsd {
- TAILQ_ENTRY(struct nfsd) nfsd_chain; /* List of all nfsd's */
+ TAILQ_ENTRY(nfsd) nfsd_chain; /* List of all nfsd's */
int nfsd_flag; /* NFSD_ flags */
struct nfssvc_sock *nfsd_slp; /* Current socket */
int nfsd_authlen; /* Authenticator len */
@@ -486,9 +486,9 @@ struct nfsrv_descript {
u_quad_t nd_time; /* Write deadline (usec) */
off_t nd_off; /* Start byte offset */
off_t nd_eoff; /* and end byte offset */
- LIST_ENTRY(struct nfsrv_descript) nd_hash; /* Hash list */
- LIST_ENTRY(struct nfsrv_descript) nd_tq; /* and timer list */
- LIST_HEAD(, struct nfsrv_descript) nd_coalesce; /* coalesced writes */
+ LIST_ENTRY(nfsrv_descript) nd_hash; /* Hash list */
+ LIST_ENTRY(nfsrv_descript) nd_tq; /* and timer list */
+ LIST_HEAD(,nfsrv_descript) nd_coalesce; /* coalesced writes */
struct mbuf *nd_mrep; /* Request mbuf list */
struct mbuf *nd_md; /* Current dissect mbuf */
struct mbuf *nd_mreq; /* Reply mbuf list */
@@ -518,7 +518,7 @@ struct nfsrv_descript {
#define ND_KERBFULL 0x40
#define ND_KERBAUTH (ND_KERBNICK | ND_KERBFULL)
-extern TAILQ_HEAD(nfsd_head, struct nfsd) nfsd_head;
+extern TAILQ_HEAD(nfsd_head, nfsd) nfsd_head;
extern int nfsd_head_flag;
#define NFSD_CHECKSLP 0x01
diff --git a/sys/nfsserver/nfs.h b/sys/nfsserver/nfs.h
index 475dbd2..e07a4f5 100644
--- a/sys/nfsserver/nfs.h
+++ b/sys/nfsserver/nfs.h
@@ -333,7 +333,7 @@ struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
* Nfs outstanding request list element
*/
struct nfsreq {
- TAILQ_ENTRY(struct nfsreq) r_chain;
+ TAILQ_ENTRY(nfsreq) r_chain;
struct mbuf *r_mreq;
struct mbuf *r_mrep;
struct mbuf *r_md;
@@ -353,7 +353,7 @@ struct nfsreq {
/*
* Queue head for nfsreq's
*/
-extern TAILQ_HEAD(nfs_reqq, struct nfsreq) nfs_reqq;
+extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq;
/* Flag values for r_flags */
#define R_TIMING 0x01 /* timing request (in mntp) */
@@ -398,8 +398,8 @@ union nethostaddr {
};
struct nfsuid {
- TAILQ_ENTRY(struct nfsuid) nu_lru; /* LRU chain */
- LIST_ENTRY(struct nfsuid) nu_hash; /* Hash list */
+ TAILQ_ENTRY(nfsuid) nu_lru; /* LRU chain */
+ LIST_ENTRY(nfsuid) nu_hash; /* Hash list */
int nu_flag; /* Flags */
union nethostaddr nu_haddr; /* Host addr. for dgram sockets */
struct ucred nu_cr; /* Cred uid mapped to */
@@ -417,20 +417,20 @@ struct nfsuid {
#define NU_NETFAM(u) (((u)->nu_flag & NU_INETADDR) ? AF_INET : AF_ISO)
struct nfsrv_rec {
- STAILQ_ENTRY(struct nfsrv_rec) nr_link;
+ STAILQ_ENTRY(nfsrv_rec) nr_link;
struct sockaddr *nr_address;
struct mbuf *nr_packet;
};
struct nfssvc_sock {
- TAILQ_ENTRY(struct nfssvc_sock) ns_chain;/* List of all nfssvc_sock's */
- TAILQ_HEAD(, struct nfsuid) ns_uidlruhead;
+ TAILQ_ENTRY(nfssvc_sock) ns_chain; /* List of all nfssvc_sock's */
+ TAILQ_HEAD(, nfsuid) ns_uidlruhead;
struct file *ns_fp;
struct socket *ns_so;
struct sockaddr *ns_nam;
struct mbuf *ns_raw;
struct mbuf *ns_rawend;
- STAILQ_HEAD(, struct nfsrv_rec) ns_rec;
+ STAILQ_HEAD(, nfsrv_rec) ns_rec;
struct mbuf *ns_frag;
int ns_flag;
int ns_solock;
@@ -438,9 +438,9 @@ struct nfssvc_sock {
int ns_reclen;
int ns_numuids;
u_int32_t ns_sref;
- LIST_HEAD(, struct nfsrv_descript) ns_tq; /* Write gather lists */
- LIST_HEAD(, struct nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
- LIST_HEAD(nfsrvw_delayhash, struct nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
+ LIST_HEAD(, nfsrv_descript) ns_tq; /* Write gather lists */
+ LIST_HEAD(, nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
+ LIST_HEAD(nfsrvw_delayhash, nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
};
/* Bits for "ns_flag" */
@@ -452,7 +452,7 @@ struct nfssvc_sock {
#define SLP_LASTFRAG 0x20
#define SLP_ALLFLAGS 0xff
-extern TAILQ_HEAD(nfssvc_sockhead, struct nfssvc_sock) nfssvc_sockhead;
+extern TAILQ_HEAD(nfssvc_sockhead, nfssvc_sock) nfssvc_sockhead;
extern int nfssvc_sockhead_flag;
#define SLP_INIT 0x01
#define SLP_WANTINIT 0x02
@@ -461,7 +461,7 @@ extern int nfssvc_sockhead_flag;
* One of these structures is allocated for each nfsd.
*/
struct nfsd {
- TAILQ_ENTRY(struct nfsd) nfsd_chain; /* List of all nfsd's */
+ TAILQ_ENTRY(nfsd) nfsd_chain; /* List of all nfsd's */
int nfsd_flag; /* NFSD_ flags */
struct nfssvc_sock *nfsd_slp; /* Current socket */
int nfsd_authlen; /* Authenticator len */
@@ -486,9 +486,9 @@ struct nfsrv_descript {
u_quad_t nd_time; /* Write deadline (usec) */
off_t nd_off; /* Start byte offset */
off_t nd_eoff; /* and end byte offset */
- LIST_ENTRY(struct nfsrv_descript) nd_hash; /* Hash list */
- LIST_ENTRY(struct nfsrv_descript) nd_tq; /* and timer list */
- LIST_HEAD(, struct nfsrv_descript) nd_coalesce; /* coalesced writes */
+ LIST_ENTRY(nfsrv_descript) nd_hash; /* Hash list */
+ LIST_ENTRY(nfsrv_descript) nd_tq; /* and timer list */
+ LIST_HEAD(,nfsrv_descript) nd_coalesce; /* coalesced writes */
struct mbuf *nd_mrep; /* Request mbuf list */
struct mbuf *nd_md; /* Current dissect mbuf */
struct mbuf *nd_mreq; /* Reply mbuf list */
@@ -518,7 +518,7 @@ struct nfsrv_descript {
#define ND_KERBFULL 0x40
#define ND_KERBAUTH (ND_KERBNICK | ND_KERBFULL)
-extern TAILQ_HEAD(nfsd_head, struct nfsd) nfsd_head;
+extern TAILQ_HEAD(nfsd_head, nfsd) nfsd_head;
extern int nfsd_head_flag;
#define NFSD_CHECKSLP 0x01
diff --git a/sys/nfsserver/nfs_srvcache.c b/sys/nfsserver/nfs_srvcache.c
index 07808c4..9eb168f 100644
--- a/sys/nfsserver/nfs_srvcache.c
+++ b/sys/nfsserver/nfs_srvcache.c
@@ -64,8 +64,8 @@ static long desirednfsrvcache = NFSRVCACHESIZ;
#define NFSRCHASH(xid) \
(&nfsrvhashtbl[((xid) + ((xid) >> 24)) & nfsrvhash])
-static LIST_HEAD(nfsrvhash, struct nfsrvcache) *nfsrvhashtbl;
-static TAILQ_HEAD(nfsrvlru, struct nfsrvcache) nfsrvlruhead;
+static LIST_HEAD(nfsrvhash, nfsrvcache) *nfsrvhashtbl;
+static TAILQ_HEAD(nfsrvlru, nfsrvcache) nfsrvlruhead;
static u_long nfsrvhash;
#define TRUE 1
diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c
index fab9912..70e871f 100644
--- a/sys/nfsserver/nfs_srvsubs.c
+++ b/sys/nfsserver/nfs_srvsubs.c
@@ -556,7 +556,7 @@ extern u_long nfsnodehash;
struct nfssvc_args;
extern int nfssvc(struct proc *, struct nfssvc_args *, int *);
-LIST_HEAD(nfsnodehashhead, struct nfsnode);
+LIST_HEAD(nfsnodehashhead, nfsnode);
int nfs_webnamei __P((struct nameidata *, struct vnode *, struct proc *));
diff --git a/sys/nfsserver/nfsrvcache.h b/sys/nfsserver/nfsrvcache.h
index 93ce6ce..eec5850 100644
--- a/sys/nfsserver/nfsrvcache.h
+++ b/sys/nfsserver/nfsrvcache.h
@@ -50,8 +50,8 @@
#define NFSRVCACHESIZ 64
struct nfsrvcache {
- TAILQ_ENTRY(struct nfsrvcache) rc_lru; /* LRU chain */
- LIST_ENTRY(struct nfsrvcache) rc_hash; /* Hash chain */
+ TAILQ_ENTRY(nfsrvcache) rc_lru; /* LRU chain */
+ LIST_ENTRY(nfsrvcache) rc_hash; /* Hash chain */
u_int32_t rc_xid; /* rpc id number */
union {
struct mbuf *ru_repmb; /* Reply mbuf list OR */
diff --git a/sys/nfsserver/nfsrvstats.h b/sys/nfsserver/nfsrvstats.h
index 475dbd2..e07a4f5 100644
--- a/sys/nfsserver/nfsrvstats.h
+++ b/sys/nfsserver/nfsrvstats.h
@@ -333,7 +333,7 @@ struct uio; struct buf; struct vattr; struct nameidata; /* XXX */
* Nfs outstanding request list element
*/
struct nfsreq {
- TAILQ_ENTRY(struct nfsreq) r_chain;
+ TAILQ_ENTRY(nfsreq) r_chain;
struct mbuf *r_mreq;
struct mbuf *r_mrep;
struct mbuf *r_md;
@@ -353,7 +353,7 @@ struct nfsreq {
/*
* Queue head for nfsreq's
*/
-extern TAILQ_HEAD(nfs_reqq, struct nfsreq) nfs_reqq;
+extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq;
/* Flag values for r_flags */
#define R_TIMING 0x01 /* timing request (in mntp) */
@@ -398,8 +398,8 @@ union nethostaddr {
};
struct nfsuid {
- TAILQ_ENTRY(struct nfsuid) nu_lru; /* LRU chain */
- LIST_ENTRY(struct nfsuid) nu_hash; /* Hash list */
+ TAILQ_ENTRY(nfsuid) nu_lru; /* LRU chain */
+ LIST_ENTRY(nfsuid) nu_hash; /* Hash list */
int nu_flag; /* Flags */
union nethostaddr nu_haddr; /* Host addr. for dgram sockets */
struct ucred nu_cr; /* Cred uid mapped to */
@@ -417,20 +417,20 @@ struct nfsuid {
#define NU_NETFAM(u) (((u)->nu_flag & NU_INETADDR) ? AF_INET : AF_ISO)
struct nfsrv_rec {
- STAILQ_ENTRY(struct nfsrv_rec) nr_link;
+ STAILQ_ENTRY(nfsrv_rec) nr_link;
struct sockaddr *nr_address;
struct mbuf *nr_packet;
};
struct nfssvc_sock {
- TAILQ_ENTRY(struct nfssvc_sock) ns_chain;/* List of all nfssvc_sock's */
- TAILQ_HEAD(, struct nfsuid) ns_uidlruhead;
+ TAILQ_ENTRY(nfssvc_sock) ns_chain; /* List of all nfssvc_sock's */
+ TAILQ_HEAD(, nfsuid) ns_uidlruhead;
struct file *ns_fp;
struct socket *ns_so;
struct sockaddr *ns_nam;
struct mbuf *ns_raw;
struct mbuf *ns_rawend;
- STAILQ_HEAD(, struct nfsrv_rec) ns_rec;
+ STAILQ_HEAD(, nfsrv_rec) ns_rec;
struct mbuf *ns_frag;
int ns_flag;
int ns_solock;
@@ -438,9 +438,9 @@ struct nfssvc_sock {
int ns_reclen;
int ns_numuids;
u_int32_t ns_sref;
- LIST_HEAD(, struct nfsrv_descript) ns_tq; /* Write gather lists */
- LIST_HEAD(, struct nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
- LIST_HEAD(nfsrvw_delayhash, struct nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
+ LIST_HEAD(, nfsrv_descript) ns_tq; /* Write gather lists */
+ LIST_HEAD(, nfsuid) ns_uidhashtbl[NFS_UIDHASHSIZ];
+ LIST_HEAD(nfsrvw_delayhash, nfsrv_descript) ns_wdelayhashtbl[NFS_WDELAYHASHSIZ];
};
/* Bits for "ns_flag" */
@@ -452,7 +452,7 @@ struct nfssvc_sock {
#define SLP_LASTFRAG 0x20
#define SLP_ALLFLAGS 0xff
-extern TAILQ_HEAD(nfssvc_sockhead, struct nfssvc_sock) nfssvc_sockhead;
+extern TAILQ_HEAD(nfssvc_sockhead, nfssvc_sock) nfssvc_sockhead;
extern int nfssvc_sockhead_flag;
#define SLP_INIT 0x01
#define SLP_WANTINIT 0x02
@@ -461,7 +461,7 @@ extern int nfssvc_sockhead_flag;
* One of these structures is allocated for each nfsd.
*/
struct nfsd {
- TAILQ_ENTRY(struct nfsd) nfsd_chain; /* List of all nfsd's */
+ TAILQ_ENTRY(nfsd) nfsd_chain; /* List of all nfsd's */
int nfsd_flag; /* NFSD_ flags */
struct nfssvc_sock *nfsd_slp; /* Current socket */
int nfsd_authlen; /* Authenticator len */
@@ -486,9 +486,9 @@ struct nfsrv_descript {
u_quad_t nd_time; /* Write deadline (usec) */
off_t nd_off; /* Start byte offset */
off_t nd_eoff; /* and end byte offset */
- LIST_ENTRY(struct nfsrv_descript) nd_hash; /* Hash list */
- LIST_ENTRY(struct nfsrv_descript) nd_tq; /* and timer list */
- LIST_HEAD(, struct nfsrv_descript) nd_coalesce; /* coalesced writes */
+ LIST_ENTRY(nfsrv_descript) nd_hash; /* Hash list */
+ LIST_ENTRY(nfsrv_descript) nd_tq; /* and timer list */
+ LIST_HEAD(,nfsrv_descript) nd_coalesce; /* coalesced writes */
struct mbuf *nd_mrep; /* Request mbuf list */
struct mbuf *nd_md; /* Current dissect mbuf */
struct mbuf *nd_mreq; /* Reply mbuf list */
@@ -518,7 +518,7 @@ struct nfsrv_descript {
#define ND_KERBFULL 0x40
#define ND_KERBAUTH (ND_KERBNICK | ND_KERBFULL)
-extern TAILQ_HEAD(nfsd_head, struct nfsd) nfsd_head;
+extern TAILQ_HEAD(nfsd_head, nfsd) nfsd_head;
extern int nfsd_head_flag;
#define NFSD_CHECKSLP 0x01
diff --git a/sys/ntfs/ntfs_ihash.c b/sys/ntfs/ntfs_ihash.c
index 0ddf074..0deecff 100644
--- a/sys/ntfs/ntfs_ihash.c
+++ b/sys/ntfs/ntfs_ihash.c
@@ -54,7 +54,7 @@ MALLOC_DEFINE(M_NTFSNTHASH, "NTFS nthash", "NTFS ntnode hash tables");
/*
* Structures associated with inode cacheing.
*/
-static LIST_HEAD(nthashhead, struct ntnode) *ntfs_nthashtbl;
+static LIST_HEAD(nthashhead, ntnode) *ntfs_nthashtbl;
static u_long ntfs_nthash; /* size of hash table - 1 */
#define NTNOHASH(device, inum) (&ntfs_nthashtbl[(minor(device) + (inum)) & ntfs_nthash])
#ifndef NULL_SIMPLELOCKS
diff --git a/sys/ntfs/ntfs_inode.h b/sys/ntfs/ntfs_inode.h
index a14e008..a86d5f7 100644
--- a/sys/ntfs/ntfs_inode.h
+++ b/sys/ntfs/ntfs_inode.h
@@ -60,7 +60,7 @@ struct ntnode {
struct vnode *i_devvp; /* vnode of blk dev we live on */
dev_t i_dev; /* Device associated with the inode. */
- LIST_ENTRY(struct ntnode) i_hash;
+ LIST_ENTRY(ntnode) i_hash;
struct ntnode *i_next;
struct ntnode **i_prev;
struct ntfsmount *i_mp;
@@ -72,8 +72,8 @@ struct ntnode {
struct simplelock i_interlock;
int i_usecount;
- LIST_HEAD(, struct fnode) i_fnlist;
- LIST_HEAD(, struct ntvattr) i_valist;
+ LIST_HEAD(,fnode) i_fnlist;
+ LIST_HEAD(,ntvattr) i_valist;
long i_nlink; /* MFR */
ino_t i_mainrec; /* MFR */
@@ -88,7 +88,7 @@ struct fnode {
struct lock f_lock; /* fnode lock >Keep this first< */
#endif
- LIST_ENTRY(struct fnode) f_fnlist;
+ LIST_ENTRY(fnode) f_fnlist;
struct vnode *f_vp; /* Associatied vnode */
struct ntnode *f_ip; /* Associated ntnode */
u_long f_flag;
diff --git a/sys/ntfs/ntfs_subr.h b/sys/ntfs/ntfs_subr.h
index f172c56..a0cda50 100644
--- a/sys/ntfs/ntfs_subr.h
+++ b/sys/ntfs/ntfs_subr.h
@@ -32,7 +32,7 @@
#define VA_PRELOADED 0x0002
struct ntvattr {
- LIST_ENTRY(struct ntvattr) va_list;
+ LIST_ENTRY(ntvattr) va_list;
u_int32_t va_vflag;
struct vnode *va_vp;
diff --git a/sys/nwfs/nwfs_node.c b/sys/nwfs/nwfs_node.c
index f632a1e..25d9225 100644
--- a/sys/nwfs/nwfs_node.c
+++ b/sys/nwfs/nwfs_node.c
@@ -59,7 +59,7 @@
extern vop_t **nwfs_vnodeop_p;
-static LIST_HEAD(nwnode_hash_head, struct nwnode) *nwhashtbl;
+static LIST_HEAD(nwnode_hash_head,nwnode) *nwhashtbl;
static u_long nwnodehash;
static int nwhashlock = 0;
diff --git a/sys/nwfs/nwfs_node.h b/sys/nwfs/nwfs_node.h
index 2755013..3777679 100644
--- a/sys/nwfs/nwfs_node.h
+++ b/sys/nwfs/nwfs_node.h
@@ -45,7 +45,7 @@
#define NVOLUME 0x0010 /* vnode references a volume */
struct nwnode {
- LIST_ENTRY(struct nwnode) n_hash;
+ LIST_ENTRY(nwnode) n_hash;
struct vnode *n_vnode;
struct vattr n_vattr;
struct nwmount *n_mount;
diff --git a/sys/pci/amd.h b/sys/pci/amd.h
index e36956e..85f4f80 100644
--- a/sys/pci/amd.h
+++ b/sys/pci/amd.h
@@ -154,7 +154,7 @@ typedef struct _EEprom {
* SCSI Request Block
*/
struct amd_srb {
- TAILQ_ENTRY(struct amd_srb) links;
+ TAILQ_ENTRY(amd_srb) links;
u_int8_t CmdBlock[12];
union ccb *pccb;
bus_dmamap_t dmamap;
@@ -187,7 +187,7 @@ struct amd_srb {
u_int8_t ScsiCmdLen;
};
-TAILQ_HEAD(srb_queue, struct amd_srb);
+TAILQ_HEAD(srb_queue, amd_srb);
/*
* Per-adapter, software configuration.
diff --git a/sys/pci/if_skreg.h b/sys/pci/if_skreg.h
index 2a5afc0..af17c1c 100644
--- a/sys/pci/if_skreg.h
+++ b/sys/pci/if_skreg.h
@@ -1129,7 +1129,7 @@ struct sk_jslot {
struct sk_jpool_entry {
int slot;
- SLIST_ENTRY(struct sk_jpool_entry) jpool_entries;
+ SLIST_ENTRY(sk_jpool_entry) jpool_entries;
};
struct sk_chain {
@@ -1209,8 +1209,8 @@ struct sk_if_softc {
struct sk_softc *sk_softc; /* parent controller */
int sk_tx_bmu; /* TX BMU register */
int sk_if_flags;
- SLIST_HEAD(__sk_jfreehead, struct sk_jpool_entry) sk_jfree_listhead;
- SLIST_HEAD(__sk_jinusehead, struct sk_jpool_entry) sk_jinuse_listhead;
+ SLIST_HEAD(__sk_jfreehead, sk_jpool_entry) sk_jfree_listhead;
+ SLIST_HEAD(__sk_jinusehead, sk_jpool_entry) sk_jinuse_listhead;
};
#define SK_MAXUNIT 256
diff --git a/sys/pci/if_tireg.h b/sys/pci/if_tireg.h
index fd6cb00..5210ffa 100644
--- a/sys/pci/if_tireg.h
+++ b/sys/pci/if_tireg.h
@@ -1103,12 +1103,12 @@ struct ti_type {
struct ti_mc_entry {
struct ether_addr mc_addr;
- SLIST_ENTRY(struct ti_mc_entry) mc_entries;
+ SLIST_ENTRY(ti_mc_entry) mc_entries;
};
struct ti_jpool_entry {
int slot;
- SLIST_ENTRY(struct ti_jpool_entry) jpool_entries;
+ SLIST_ENTRY(ti_jpool_entry) jpool_entries;
};
struct ti_softc {
@@ -1135,9 +1135,9 @@ struct ti_softc {
u_int16_t ti_std; /* current std ring head */
u_int16_t ti_mini; /* current mini ring head */
u_int16_t ti_jumbo; /* current jumo ring head */
- SLIST_HEAD(__ti_mchead, struct ti_mc_entry) ti_mc_listhead;
- SLIST_HEAD(__ti_jfreehead, struct ti_jpool_entry) ti_jfree_listhead;
- SLIST_HEAD(__ti_jinusehead, struct ti_jpool_entry) ti_jinuse_listhead;
+ SLIST_HEAD(__ti_mchead, ti_mc_entry) ti_mc_listhead;
+ SLIST_HEAD(__ti_jfreehead, ti_jpool_entry) ti_jfree_listhead;
+ SLIST_HEAD(__ti_jinusehead, ti_jpool_entry) ti_jinuse_listhead;
u_int32_t ti_stat_ticks;
u_int32_t ti_rx_coal_ticks;
u_int32_t ti_tx_coal_ticks;
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index 081cd54..aa58b8a 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -87,13 +87,13 @@ struct pci_quirk pci_quirks[] = {
#define PCI_MAPPORT 0x04 /* port map */
struct pci_devinfo {
- STAILQ_ENTRY(struct pci_devinfo) pci_links;
+ STAILQ_ENTRY(pci_devinfo) pci_links;
struct resource_list resources;
pcicfgregs cfg;
struct pci_conf conf;
};
-static STAILQ_HEAD(devlist, struct pci_devinfo) pci_devq;
+static STAILQ_HEAD(devlist, pci_devinfo) pci_devq;
u_int32_t pci_numdevs = 0;
static u_int32_t pci_generation = 0;
@@ -400,7 +400,7 @@ pci_freecfg(struct pci_devinfo *dinfo)
if (dinfo->cfg.map != NULL)
free(dinfo->cfg.map, M_DEVBUF);
/* XXX this hasn't been tested */
- STAILQ_REMOVE(devlist_head, dinfo, struct pci_devinfo, pci_links);
+ STAILQ_REMOVE(devlist_head, dinfo, pci_devinfo, pci_links);
free(dinfo, M_DEVBUF);
/* increment the generation count */
diff --git a/sys/svr4/svr4_socket.c b/sys/svr4/svr4_socket.c
index 264e654..1884b07 100644
--- a/sys/svr4/svr4_socket.c
+++ b/sys/svr4/svr4_socket.c
@@ -68,10 +68,10 @@ struct svr4_sockcache_entry {
struct sockaddr_un sock;/* Pathname for the socket */
udev_t dev; /* Device where the socket lives on */
ino_t ino; /* Inode where the socket lives on */
- TAILQ_ENTRY(struct svr4_sockcache_entry) entries;
+ TAILQ_ENTRY(svr4_sockcache_entry) entries;
};
-extern TAILQ_HEAD(svr4_sockcache_head, struct svr4_sockcache_entry) svr4_head;
+extern TAILQ_HEAD(svr4_sockcache_head, svr4_sockcache_entry) svr4_head;
extern int svr4_str_initialized;
struct sockaddr_un *
diff --git a/sys/sys/aio.h b/sys/sys/aio.h
index a7ae6b6..946ac0b 100644
--- a/sys/sys/aio.h
+++ b/sys/sys/aio.h
@@ -156,8 +156,8 @@ __END_DECLS
#define AIOCBLIST_DONE 0x10
struct aiocblist {
- TAILQ_ENTRY (struct aiocblist) list; /* List of jobs */
- TAILQ_ENTRY (struct aiocblist) plist; /* List of jobs for proc */
+ TAILQ_ENTRY (aiocblist) list; /* List of jobs */
+ TAILQ_ENTRY (aiocblist) plist; /* List of jobs for proc */
int jobflags;
int jobstate;
int inputcharge, outputcharge;
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index d65e57a..bdd19df 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -76,7 +76,7 @@ struct bio {
void *bio_driver2; /* Private use by the callee. */
void *bio_caller1; /* Private use by the caller. */
void *bio_caller2; /* Private use by the caller. */
- TAILQ_ENTRY(struct bio) bio_queue; /* Disksort queue. */
+ TAILQ_ENTRY(bio) bio_queue; /* Disksort queue. */
/* XXX: these go away when bio chaining is introduced */
daddr_t bio_pblkno; /* physical block number */
@@ -104,7 +104,7 @@ biodone(struct bio *bp)
}
struct bio_queue_head {
- TAILQ_HEAD(bio_queue, struct bio) queue;
+ TAILQ_HEAD(bio_queue, bio) queue;
daddr_t last_pblkno;
struct bio *insert_point;
struct bio *switch_point;
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index 9d97bc0..39a5c99 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -53,7 +53,7 @@ struct vnode;
/*
* To avoid including <ufs/ffs/softdep.h>
*/
-LIST_HEAD(workhead, struct worklist);
+LIST_HEAD(workhead, worklist);
/*
* These are currently used only by the soft dependency code, hence
* are stored once in a global variable. If other subsystems wanted
@@ -103,10 +103,10 @@ struct buf {
#define b_resid b_io.bio_resid
void (*b_iodone) __P((struct buf *));
off_t b_offset; /* Offset into file. */
- LIST_ENTRY(struct buf) b_hash; /* Hash chain. */
- TAILQ_ENTRY(struct buf) b_vnbufs; /* Buffer's associated vnode. */
- TAILQ_ENTRY(struct buf) b_freelist; /* Free list position if not active. */
- TAILQ_ENTRY(struct buf) b_act; /* Device driver queue when active. *new* */
+ LIST_ENTRY(buf) b_hash; /* Hash chain. */
+ TAILQ_ENTRY(buf) b_vnbufs; /* Buffer's associated vnode. */
+ TAILQ_ENTRY(buf) b_freelist; /* Free list position if not active. */
+ TAILQ_ENTRY(buf) b_act; /* Device driver queue when active. *new* */
long b_flags; /* B_* flags. */
unsigned short b_qindex; /* buffer queue index */
unsigned char b_xflags; /* extra flags */
@@ -126,8 +126,8 @@ struct buf {
int pg_reqpage;
} b_pager;
union cluster_info {
- TAILQ_HEAD(cluster_list_head, struct buf) cluster_head;
- TAILQ_ENTRY(struct buf) cluster_entry;
+ TAILQ_HEAD(cluster_list_head, buf) cluster_head;
+ TAILQ_ENTRY(buf) cluster_entry;
} b_cluster;
struct vm_page *b_pages[btoc(MAXPHYS)];
int b_npages;
@@ -334,7 +334,7 @@ BUF_REFCNT(struct buf *bp)
#endif /* _KERNEL */
struct buf_queue_head {
- TAILQ_HEAD(buf_queue, struct buf) queue;
+ TAILQ_HEAD(buf_queue, buf) queue;
daddr_t last_pblkno;
struct buf *insert_point;
struct buf *switch_point;
@@ -440,8 +440,8 @@ extern char *buffers; /* The buffer contents. */
extern int bufpages; /* Number of memory pages in the buffer pool. */
extern struct buf *swbuf; /* Swap I/O buffer headers. */
extern int nswbuf; /* Number of swap I/O buffer headers. */
-extern TAILQ_HEAD(swqueue, struct buf) bswlist;
-extern TAILQ_HEAD(bqueues, struct buf) bufqueues[BUFFER_QUEUES];
+extern TAILQ_HEAD(swqueue, buf) bswlist;
+extern TAILQ_HEAD(bqueues, buf) bufqueues[BUFFER_QUEUES];
struct uio;
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index 5527685..8ab2a13 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -81,7 +81,7 @@ typedef enum device_state {
struct resource;
struct resource_list_entry {
- SLIST_ENTRY(struct resource_list_entry) link;
+ SLIST_ENTRY(resource_list_entry) link;
int type; /* type argument to alloc_resource */
int rid; /* resource identifier */
struct resource *res; /* the real resource when allocated */
@@ -89,7 +89,7 @@ struct resource_list_entry {
u_long end; /* end of resource range */
u_long count; /* count within range */
};
-SLIST_HEAD(resource_list, struct resource_list_entry);
+SLIST_HEAD(resource_list, resource_list_entry);
/*
* Initialise a resource list.
diff --git a/sys/sys/bus_private.h b/sys/sys/bus_private.h
index 3b934be..547892b 100644
--- a/sys/sys/bus_private.h
+++ b/sys/sys/bus_private.h
@@ -37,18 +37,18 @@
typedef struct driverlink *driverlink_t;
struct driverlink {
driver_t *driver;
- TAILQ_ENTRY(struct driverlink) link; /* list of drivers in devclass */
+ TAILQ_ENTRY(driverlink) link; /* list of drivers in devclass */
};
/*
* Forward declarations
*/
-typedef TAILQ_HEAD(devclass_list, struct devclass) devclass_list_t;
-typedef TAILQ_HEAD(driver_list, struct driverlink) driver_list_t;
-typedef TAILQ_HEAD(device_list, struct device) device_list_t;
+typedef TAILQ_HEAD(devclass_list, devclass) devclass_list_t;
+typedef TAILQ_HEAD(driver_list, driverlink) driver_list_t;
+typedef TAILQ_HEAD(device_list, device) device_list_t;
struct devclass {
- TAILQ_ENTRY(struct devclass) link;
+ TAILQ_ENTRY(devclass) link;
driver_list_t drivers; /* bus devclasses store drivers for bus */
char *name;
device_t *devices; /* array of devices indexed by unit */
@@ -92,7 +92,7 @@ struct device {
/*
* Device hierarchy.
*/
- TAILQ_ENTRY(struct device) link; /* list of devices in parent */
+ TAILQ_ENTRY(device) link; /* list of devices in parent */
device_t parent;
device_list_t children; /* list of subordinate devices */
diff --git a/sys/sys/callout.h b/sys/sys/callout.h
index c2c8b9b..c83bf44 100644
--- a/sys/sys/callout.h
+++ b/sys/sys/callout.h
@@ -44,13 +44,13 @@
#include <sys/queue.h>
-SLIST_HEAD(callout_list, struct callout);
-TAILQ_HEAD(callout_tailq, struct callout);
+SLIST_HEAD(callout_list, callout);
+TAILQ_HEAD(callout_tailq, callout);
struct callout {
union {
- SLIST_ENTRY(struct callout) sle;
- TAILQ_ENTRY(struct callout) tqe;
+ SLIST_ENTRY(callout) sle;
+ TAILQ_ENTRY(callout) tqe;
} c_links;
int c_time; /* ticks to the event */
void *c_arg; /* function argument */
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index f1408fe..c13a5ca 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -55,8 +55,8 @@ struct specinfo {
#define SI_STASHED 0x0001 /* created in stashed storage */
#define SI_WHINED 0x0002 /* whined about already */
udev_t si_udev;
- LIST_ENTRY(struct specinfo) si_hash;
- SLIST_HEAD(, struct vnode) si_hlist;
+ LIST_ENTRY(specinfo) si_hash;
+ SLIST_HEAD(, vnode) si_hlist;
char si_name[SPECNAMELEN + 1];
void *si_drv1, *si_drv2;
struct cdevsw *si_devsw;
diff --git a/sys/sys/devicestat.h b/sys/sys/devicestat.h
index 7ccc701..7e617c6 100644
--- a/sys/sys/devicestat.h
+++ b/sys/sys/devicestat.h
@@ -121,7 +121,7 @@ typedef enum {
} devstat_type_flags;
struct devstat {
- STAILQ_ENTRY(struct devstat) dev_links;
+ STAILQ_ENTRY(devstat) dev_links;
u_int32_t device_number; /*
* Devstat device
* number.
diff --git a/sys/sys/event.h b/sys/sys/event.h
index ca53c5b..366b347 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -94,7 +94,7 @@ struct kevent {
*/
#include <sys/queue.h>
struct knote;
-SLIST_HEAD(klist, struct knote);
+SLIST_HEAD(klist, knote);
#ifdef _KERNEL
@@ -114,9 +114,9 @@ struct filterops {
};
struct knote {
- SLIST_ENTRY(struct knote) kn_link; /* for fd */
- SLIST_ENTRY(struct knote) kn_selnext; /* for struct selinfo */
- TAILQ_ENTRY(struct knote) kn_tqe;
+ SLIST_ENTRY(knote) kn_link; /* for fd */
+ SLIST_ENTRY(knote) kn_selnext; /* for struct selinfo */
+ TAILQ_ENTRY(knote) kn_tqe;
struct kqueue *kn_kq; /* which queue we are on */
struct kevent kn_kevent;
int kn_status;
diff --git a/sys/sys/eventhandler.h b/sys/sys/eventhandler.h
index 3239d98..0d879b7 100644
--- a/sys/sys/eventhandler.h
+++ b/sys/sys/eventhandler.h
@@ -33,18 +33,18 @@
struct eventhandler_entry
{
- TAILQ_ENTRY(struct eventhandler_entry) ee_link;
+ TAILQ_ENTRY(eventhandler_entry) ee_link;
int ee_priority;
void *ee_arg;
};
struct eventhandler_list
{
- TAILQ_ENTRY(struct eventhandler_list) el_link;
+ TAILQ_ENTRY(eventhandler_list) el_link;
char *el_name;
int el_flags;
#define EHE_INITTED (1<<0)
- TAILQ_HEAD(, struct eventhandler_entry) el_entries;
+ TAILQ_HEAD(,eventhandler_entry) el_entries;
};
typedef struct eventhandler_entry *eventhandler_tag;
diff --git a/sys/sys/eventvar.h b/sys/sys/eventvar.h
index e98a1a7..7046f51 100644
--- a/sys/sys/eventvar.h
+++ b/sys/sys/eventvar.h
@@ -33,7 +33,7 @@
#define KQEXTENT 256 /* linear growth by this amount */
struct kqueue {
- TAILQ_HEAD(kqlist, struct knote) kq_head; /* list of pending event */
+ TAILQ_HEAD(kqlist, knote) kq_head; /* list of pending event */
int kq_count; /* number of pending events */
struct selinfo kq_sel;
struct filedesc *kq_fdp;
diff --git a/sys/sys/file.h b/sys/sys/file.h
index 6cbcb21..a92370a 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -54,7 +54,7 @@ struct uio;
* One entry for each open kernel vnode and socket.
*/
struct file {
- LIST_ENTRY(struct file) f_list;/* list of active files */
+ LIST_ENTRY(file) f_list;/* list of active files */
short f_flag; /* see fcntl.h */
#define DTYPE_VNODE 1 /* file */
#define DTYPE_SOCKET 2 /* communications endpoint */
@@ -96,7 +96,7 @@ struct file {
MALLOC_DECLARE(M_FILE);
#endif
-LIST_HEAD(filelist, struct file);
+LIST_HEAD(filelist, file);
extern struct filelist filehead; /* head of list of open files */
extern struct fileops vnops;
extern struct fileops badfileops;
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index 8df8906..0a43b83 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -111,7 +111,7 @@ struct sigio {
struct proc *siu_proc; /* process to receive SIGIO/SIGURG */
struct pgrp *siu_pgrp; /* process group to receive ... */
} sio_u;
- SLIST_ENTRY(struct sigio) sio_pgsigio; /* sigio's for process or group */
+ SLIST_ENTRY(sigio) sio_pgsigio; /* sigio's for process or group */
struct sigio **sio_myref; /* location of the pointer that holds
* the reference to this structure */
struct ucred *sio_ucred; /* current credentials */
@@ -121,7 +121,7 @@ struct sigio {
#define sio_proc sio_u.siu_proc
#define sio_pgrp sio_u.siu_pgrp
-SLIST_HEAD(sigiolst, struct sigio);
+SLIST_HEAD(sigiolst, sigio);
#ifdef _KERNEL
int closef __P((struct file *fp, struct proc *p));
diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h
index 0f09cde..fe340c9 100644
--- a/sys/sys/kernel.h
+++ b/sys/sys/kernel.h
@@ -295,7 +295,7 @@ extern struct linker_set execsw_set;
struct intr_config_hook {
- TAILQ_ENTRY(struct intr_config_hook) ich_links;
+ TAILQ_ENTRY(intr_config_hook) ich_links;
void (*ich_func) __P((void *arg));
void *ich_arg;
};
diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h
index f1408fe..c13a5ca 100644
--- a/sys/sys/linedisc.h
+++ b/sys/sys/linedisc.h
@@ -55,8 +55,8 @@ struct specinfo {
#define SI_STASHED 0x0001 /* created in stashed storage */
#define SI_WHINED 0x0002 /* whined about already */
udev_t si_udev;
- LIST_ENTRY(struct specinfo) si_hash;
- SLIST_HEAD(, struct vnode) si_hlist;
+ LIST_ENTRY(specinfo) si_hash;
+ SLIST_HEAD(, vnode) si_hlist;
char si_name[SPECNAMELEN + 1];
void *si_drv1, *si_drv2;
struct cdevsw *si_devsw;
diff --git a/sys/sys/linker.h b/sys/sys/linker.h
index cc6b3e7..60c47b5 100644
--- a/sys/sys/linker.h
+++ b/sys/sys/linker.h
@@ -42,7 +42,7 @@ MALLOC_DECLARE(M_LINKER);
* Object representing a file which has been loaded by the linker.
*/
typedef struct linker_file* linker_file_t;
-typedef TAILQ_HEAD(, struct linker_file) linker_file_list_t;
+typedef TAILQ_HEAD(, linker_file) linker_file_list_t;
typedef caddr_t linker_sym_t; /* opaque symbol */
typedef c_caddr_t c_linker_sym_t; /* const opaque symbol */
@@ -57,7 +57,7 @@ typedef struct linker_symval {
} linker_symval_t;
struct common_symbol {
- STAILQ_ENTRY(struct common_symbol) link;
+ STAILQ_ENTRY(common_symbol) link;
char* name;
caddr_t address;
};
@@ -68,27 +68,27 @@ struct linker_file {
int userrefs; /* kldload(2) count */
int flags;
#define LINKER_FILE_LINKED 0x1 /* file has been fully linked */
- TAILQ_ENTRY(struct linker_file) link; /* list of all loaded files */
+ TAILQ_ENTRY(linker_file) link; /* list of all loaded files */
char* filename; /* file which was loaded */
int id; /* unique id */
caddr_t address; /* load address */
size_t size; /* size of file */
int ndeps; /* number of dependancies */
linker_file_t* deps; /* list of dependancies */
- STAILQ_HEAD(, struct common_symbol) common; /* list of common symbols */
- TAILQ_HEAD(, struct module) modules; /* modules in this file */
- TAILQ_ENTRY(struct linker_file) loaded; /* preload dependency support */
+ STAILQ_HEAD(, common_symbol) common; /* list of common symbols */
+ TAILQ_HEAD(, module) modules; /* modules in this file */
+ TAILQ_ENTRY(linker_file) loaded; /* preload dependency support */
};
/*
* Object implementing a class of file (a.out, elf, etc.)
*/
typedef struct linker_class *linker_class_t;
-typedef TAILQ_HEAD(, struct linker_class) linker_class_list_t;
+typedef TAILQ_HEAD(, linker_class) linker_class_list_t;
struct linker_class {
KOBJ_CLASS_FIELDS;
- TAILQ_ENTRY(struct linker_class) link; /* list of all file classes */
+ TAILQ_ENTRY(linker_class) link; /* list of all file classes */
};
/*
diff --git a/sys/sys/lockf.h b/sys/sys/lockf.h
index f95f73a..17980f6 100644
--- a/sys/sys/lockf.h
+++ b/sys/sys/lockf.h
@@ -50,7 +50,7 @@ struct vop_advlock_args;
* the inode structure. Locks are sorted by the starting byte of the lock for
* efficiency.
*/
-TAILQ_HEAD(locklist, struct lockf);
+TAILQ_HEAD(locklist, lockf);
struct lockf {
short lf_flags; /* Semantics: F_POSIX, F_FLOCK, F_WAIT */
@@ -62,7 +62,7 @@ struct lockf {
struct inode *lf_inode; /* Back pointer to the inode */
struct lockf *lf_next; /* Pointer to the next lock on this inode */
struct locklist lf_blkhd; /* List of requests blocked on this lock */
- TAILQ_ENTRY(struct lockf) lf_block;/* A request waiting for a lock */
+ TAILQ_ENTRY(lockf) lf_block;/* A request waiting for a lock */
};
/* Maximum length of sleep chains to traverse to try and detect deadlock. */
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 3f3db3d..ffadb71 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -104,10 +104,10 @@ struct statfs {
* array of operations and an instance record. The file systems are
* put on a doubly linked list.
*/
-LIST_HEAD(vnodelst, struct vnode);
+LIST_HEAD(vnodelst, vnode);
struct mount {
- TAILQ_ENTRY(struct mount) mnt_list; /* mount list */
+ TAILQ_ENTRY(mount) mnt_list; /* mount list */
struct vfsops *mnt_op; /* operations on fs */
struct vfsconf *mnt_vfc; /* configuration info */
struct vnode *mnt_vnodecovered; /* vnode we mounted on */
@@ -418,7 +418,7 @@ void vfs_unbusy __P((struct mount *, struct proc *));
void vfs_unmountall __P((void));
int vfs_register __P((struct vfsconf *));
int vfs_unregister __P((struct vfsconf *));
-extern TAILQ_HEAD(mntlist, struct mount) mountlist; /* mounted filesystem list */
+extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
extern struct simplelock mountlist_slock;
extern struct nfs_public nfs_pub;
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 24671cd..af7f110 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -70,8 +70,8 @@ struct session {
* One structure allocated per process group.
*/
struct pgrp {
- LIST_ENTRY(struct pgrp) pg_hash; /* Hash chain. */
- LIST_HEAD(, struct proc) pg_members; /* Pointer to pgrp members. */
+ LIST_ENTRY(pgrp) pg_hash; /* Hash chain. */
+ LIST_HEAD(, proc) pg_members; /* Pointer to pgrp members. */
struct session *pg_session; /* Pointer to session. */
struct sigiolst pg_sigiolst; /* List of sigio sources. */
pid_t pg_id; /* Pgrp id. */
@@ -123,8 +123,8 @@ struct pargs {
struct jail;
struct proc {
- TAILQ_ENTRY(struct proc) p_procq; /* run/sleep queue. */
- LIST_ENTRY(struct proc) p_list; /* List of all processes. */
+ TAILQ_ENTRY(proc) p_procq; /* run/sleep queue. */
+ LIST_ENTRY(proc) p_list; /* List of all processes. */
/* substructures: */
struct pcred *p_cred; /* Process owner's identity. */
@@ -145,11 +145,11 @@ struct proc {
char p_pad1[3];
pid_t p_pid; /* Process identifier. */
- LIST_ENTRY(struct proc) p_hash; /* Hash chain. */
- LIST_ENTRY(struct proc) p_pglist; /* List of processes in pgrp. */
+ LIST_ENTRY(proc) p_hash; /* Hash chain. */
+ LIST_ENTRY(proc) p_pglist; /* List of processes in pgrp. */
struct proc *p_pptr; /* Pointer to parent process. */
- LIST_ENTRY(struct proc) p_sibling; /* List of sibling processes. */
- LIST_HEAD(, struct proc) p_children; /* Pointer to list of children. */
+ LIST_ENTRY(proc) p_sibling; /* List of sibling processes. */
+ LIST_HEAD(, proc) p_children; /* Pointer to list of children. */
struct callout_handle p_ithandle; /*
* Callout handle for scheduling
@@ -361,11 +361,11 @@ extern void stopevent(struct proc*, unsigned int, unsigned int);
#define PRELE(p) (--(p)->p_lock)
#define PIDHASH(pid) (&pidhashtbl[(pid) & pidhash])
-extern LIST_HEAD(pidhashhead, struct proc) *pidhashtbl;
+extern LIST_HEAD(pidhashhead, proc) *pidhashtbl;
extern u_long pidhash;
#define PGRPHASH(pgid) (&pgrphashtbl[(pgid) & pgrphash])
-extern LIST_HEAD(pgrphashhead, struct pgrp) *pgrphashtbl;
+extern LIST_HEAD(pgrphashhead, pgrp) *pgrphashtbl;
extern u_long pgrphash;
#ifndef SET_CURPROC
@@ -384,13 +384,13 @@ extern int nprocs, maxproc; /* Current and max number of procs. */
extern int maxprocperuid; /* Max procs per uid. */
extern int sched_quantum; /* Scheduling quantum in ticks */
-LIST_HEAD(proclist, struct proc);
+LIST_HEAD(proclist, proc);
extern struct proclist allproc; /* List of all processes. */
extern struct proclist zombproc; /* List of zombie processes. */
extern struct proc *initproc, *pageproc, *updateproc; /* Process slots for init, pager. */
#define NQS 32 /* 32 run queues. */
-TAILQ_HEAD(rq, struct proc);
+TAILQ_HEAD(rq, proc);
extern struct rq queues[];
extern struct rq rtqueues[];
extern struct rq idqueues[];
diff --git a/sys/sys/queue.h b/sys/sys/queue.h
index 6714983..04a6ffe 100644
--- a/sys/sys/queue.h
+++ b/sys/sys/queue.h
@@ -113,7 +113,7 @@
*/
#define SLIST_HEAD(name, type) \
struct name { \
- type *slh_first; /* first element */ \
+ struct type *slh_first; /* first element */ \
}
#define SLIST_HEAD_INITIALIZER(head) \
@@ -121,7 +121,7 @@ struct name { \
#define SLIST_ENTRY(type) \
struct { \
- type *sle_next; /* next element */ \
+ struct type *sle_next; /* next element */ \
}
/*
@@ -157,7 +157,7 @@ struct { \
SLIST_REMOVE_HEAD((head), field); \
} \
else { \
- type *curelm = SLIST_FIRST((head)); \
+ struct type *curelm = SLIST_FIRST((head)); \
while (SLIST_NEXT(curelm, field) != (elm)) \
curelm = SLIST_NEXT(curelm, field); \
SLIST_NEXT(curelm, field) = \
@@ -174,8 +174,8 @@ struct { \
*/
#define STAILQ_HEAD(name, type) \
struct name { \
- type *stqh_first; /* first element */ \
- type **stqh_last; /* addr of last next element */ \
+ struct type *stqh_first;/* first element */ \
+ struct type **stqh_last;/* addr of last next element */ \
}
#define STAILQ_HEAD_INITIALIZER(head) \
@@ -183,7 +183,7 @@ struct name { \
#define STAILQ_ENTRY(type) \
struct { \
- type *stqe_next; /* next element */ \
+ struct type *stqe_next; /* next element */ \
}
/*
@@ -230,7 +230,7 @@ struct { \
STAILQ_REMOVE_HEAD(head, field); \
} \
else { \
- type *curelm = STAILQ_FIRST((head)); \
+ struct type *curelm = STAILQ_FIRST((head)); \
while (STAILQ_NEXT(curelm, field) != (elm)) \
curelm = STAILQ_NEXT(curelm, field); \
if ((STAILQ_NEXT(curelm, field) = \
@@ -255,7 +255,7 @@ struct { \
*/
#define LIST_HEAD(name, type) \
struct name { \
- type *lh_first; /* first element */ \
+ struct type *lh_first; /* first element */ \
}
#define LIST_HEAD_INITIALIZER(head) \
@@ -263,8 +263,8 @@ struct name { \
#define LIST_ENTRY(type) \
struct { \
- type *le_next; /* next element */ \
- type **le_prev; /* address of previous next element */ \
+ struct type *le_next; /* next element */ \
+ struct type **le_prev; /* address of previous next element */ \
}
/*
@@ -320,8 +320,8 @@ struct { \
*/
#define TAILQ_HEAD(name, type) \
struct name { \
- type *tqh_first; /* first element */ \
- type **tqh_last; /* addr of last next element */ \
+ struct type *tqh_first; /* first element */ \
+ struct type **tqh_last; /* addr of last next element */ \
}
#define TAILQ_HEAD_INITIALIZER(head) \
@@ -329,8 +329,8 @@ struct name { \
#define TAILQ_ENTRY(type) \
struct { \
- type *tqe_next; /* next element */ \
- type **tqe_prev; /* address of previous next element */ \
+ struct type *tqe_next; /* next element */ \
+ struct type **tqe_prev; /* address of previous next element */ \
}
/*
@@ -411,8 +411,8 @@ struct { \
*/
#define CIRCLEQ_HEAD(name, type) \
struct name { \
- type *cqh_first; /* first element */ \
- type *cqh_last; /* last element */ \
+ struct type *cqh_first; /* first element */ \
+ struct type *cqh_last; /* last element */ \
}
#define CIRCLEQ_HEAD_INITIALIZER(head) \
@@ -420,8 +420,8 @@ struct name { \
#define CIRCLEQ_ENTRY(type) \
struct { \
- type *cqe_next; /* next element */ \
- type *cqe_prev; /* previous element */ \
+ struct type *cqe_next; /* next element */ \
+ struct type *cqe_prev; /* previous element */ \
}
/*
diff --git a/sys/sys/rman.h b/sys/sys/rman.h
index 57e8f6a..0e59f75 100644
--- a/sys/sys/rman.h
+++ b/sys/sys/rman.h
@@ -42,11 +42,11 @@
* address space). That is also why the indices are defined to have type
* `unsigned long' -- that being the largest integral type in Standard C.
*/
-CIRCLEQ_HEAD(resource_head, struct resource);
+CIRCLEQ_HEAD(resource_head, resource);
struct resource {
- CIRCLEQ_ENTRY(struct resource) r_link;
- LIST_ENTRY(struct resource) r_sharelink;
- LIST_HEAD(, struct resource) *r_sharehead;
+ CIRCLEQ_ENTRY(resource) r_link;
+ LIST_ENTRY(resource) r_sharelink;
+ LIST_HEAD(, resource) *r_sharehead;
u_long r_start; /* index of the first entry in this resource */
u_long r_end; /* index of the last entry (inclusive) */
u_int r_flags;
@@ -69,13 +69,13 @@ enum rman_type { RMAN_UNINIT = 0, RMAN_GAUGE, RMAN_ARRAY };
struct rman {
struct resource_head rm_list;
struct simplelock *rm_slock; /* mutex used to protect rm_list */
- TAILQ_ENTRY(struct rman) rm_link; /* link in list of all rmans */
+ TAILQ_ENTRY(rman) rm_link; /* link in list of all rmans */
u_long rm_start; /* index of globally first entry */
u_long rm_end; /* index of globally last entry */
enum rman_type rm_type; /* what type of resource this is */
const char *rm_descr; /* text descripion of this resource */
};
-TAILQ_HEAD(rman_head, struct rman);
+TAILQ_HEAD(rman_head, rman);
#ifdef _KERNEL
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index a67561e..add6eb6 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -68,9 +68,9 @@ struct socket {
* and limit on number of queued connections for this socket.
*/
struct socket *so_head; /* back pointer to accept socket */
- TAILQ_HEAD(, struct socket) so_incomp; /* queue of partial unaccepted connections */
- TAILQ_HEAD(, struct socket) so_comp; /* queue of complete unaccepted connections */
- TAILQ_ENTRY(struct socket) so_list; /* list of unaccepted connections */
+ TAILQ_HEAD(, socket) so_incomp; /* queue of partial unaccepted connections */
+ TAILQ_HEAD(, socket) so_comp; /* queue of complete unaccepted connections */
+ TAILQ_ENTRY(socket) so_list; /* list of unaccepted connections */
short so_qlen; /* number of unaccepted connections */
short so_incqlen; /* number of unaccepted incomplete
connections */
@@ -80,7 +80,7 @@ struct socket {
struct sigio *so_sigio; /* information for async I/O or
out of band data (SIGURG) */
u_long so_oobmark; /* chars to oob mark */
- TAILQ_HEAD(, struct aiocblist) so_aiojobq; /* AIO ops waiting on socket */
+ TAILQ_HEAD(, aiocblist) so_aiojobq; /* AIO ops waiting on socket */
/*
* Variables for socket buffering.
*/
@@ -264,7 +264,7 @@ struct sockopt {
};
struct sf_buf {
- SLIST_ENTRY(struct sf_buf) free_list; /* list of free buffer slots */
+ SLIST_ENTRY(sf_buf) free_list; /* list of free buffer slots */
int refcnt; /* reference count */
struct vm_page *m; /* currently mapped page */
vm_offset_t kva; /* va of mapping */
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index 302b5fe..d5697a6 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -112,7 +112,7 @@ struct sysctl_req {
int (*newfunc)(struct sysctl_req *, void *, size_t);
};
-SLIST_HEAD(sysctl_oid_list, struct sysctl_oid);
+SLIST_HEAD(sysctl_oid_list, sysctl_oid);
/*
* This describes one "oid" in the MIB tree. Potentially more nodes can
@@ -120,7 +120,7 @@ SLIST_HEAD(sysctl_oid_list, struct sysctl_oid);
*/
struct sysctl_oid {
struct sysctl_oid_list *oid_parent;
- SLIST_ENTRY(struct sysctl_oid) oid_link;
+ SLIST_ENTRY(sysctl_oid) oid_link;
int oid_number;
int oid_kind;
void *oid_arg1;
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index 6c230de..c6f4056 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -102,7 +102,7 @@ struct tty {
int t_olowat; /* Low water mark for output. */
speed_t t_ospeedwat; /* t_ospeed override for watermarks. */
int t_gen; /* Generation number. */
- SLIST_ENTRY(struct tty) t_list; /* Global chain of ttys for pstat(8) */
+ SLIST_ENTRY(tty) t_list; /* Global chain of ttys for pstat(8) */
};
#define t_cc t_termios.c_cc
diff --git a/sys/sys/unpcb.h b/sys/sys/unpcb.h
index 2708b29..c0b8a37 100644
--- a/sys/sys/unpcb.h
+++ b/sys/sys/unpcb.h
@@ -65,17 +65,17 @@
* back pressure on the sender accordingly.
*/
typedef u_quad_t unp_gen_t;
-LIST_HEAD(unp_head, struct unpcb);
+LIST_HEAD(unp_head, unpcb);
struct unpcb {
- LIST_ENTRY(struct unpcb) unp_link; /* glue on list of all PCBs */
+ LIST_ENTRY(unpcb) unp_link; /* glue on list of all PCBs */
struct socket *unp_socket; /* pointer back to socket */
struct vnode *unp_vnode; /* if associated with file */
struct vnode *unp_rvnode; /* root vp for creating process */
ino_t unp_ino; /* fake inode number */
struct unpcb *unp_conn; /* control block of connected socket */
struct unp_head unp_refs; /* referencing socket linked list */
- LIST_ENTRY(struct unpcb) unp_reflink; /* link in unp_refs list */
+ LIST_ENTRY(unpcb) unp_reflink; /* link in unp_refs list */
struct sockaddr_un *unp_addr; /* bound address of socket */
int unp_cc; /* copy of rcv.sb_cc */
int unp_mbcnt; /* copy of rcv.sb_mbcnt */
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index fa4b07c..4938dca 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -71,7 +71,7 @@ enum vtagtype {
* Each underlying filesystem allocates its own private area and hangs
* it from v_data. If non-null, this area is freed in getnewvnode().
*/
-TAILQ_HEAD(buflists, struct buf);
+TAILQ_HEAD(buflists, buf);
typedef int vop_t __P((void *));
struct namecache;
@@ -92,11 +92,11 @@ struct vnode {
u_long v_id; /* capability identifier */
struct mount *v_mount; /* ptr to vfs we are in */
vop_t **v_op; /* vnode operations vector */
- TAILQ_ENTRY(struct vnode) v_freelist; /* vnode freelist */
- LIST_ENTRY(struct vnode) v_mntvnodes; /* vnodes for mount point */
+ TAILQ_ENTRY(vnode) v_freelist; /* vnode freelist */
+ LIST_ENTRY(vnode) v_mntvnodes; /* vnodes for mount point */
struct buflists v_cleanblkhd; /* clean blocklist head */
struct buflists v_dirtyblkhd; /* dirty blocklist head */
- LIST_ENTRY(struct vnode) v_synclist; /* vnodes with dirty buffers */
+ LIST_ENTRY(vnode) v_synclist; /* vnodes with dirty buffers */
long v_numoutput; /* num of writes in progress */
enum vtype v_type; /* vnode type */
union {
@@ -104,7 +104,7 @@ struct vnode {
struct socket *vu_socket; /* unix ipc (VSOCK) */
struct {
struct specinfo *vu_specinfo; /* device (VCHR, VBLK) */
- SLIST_ENTRY(struct vnode) vu_specnext;
+ SLIST_ENTRY(vnode) vu_specnext;
} vu_spec;
struct fifoinfo *vu_fifoinfo; /* fifo (VFIFO) */
} v_un;
@@ -118,8 +118,8 @@ struct vnode {
struct lock *v_vnlock; /* used for non-locking fs's */
enum vtagtype v_tag; /* type of underlying data */
void *v_data; /* private data for fs */
- LIST_HEAD(, struct namecache) v_cache_src; /* Cache entries from us */
- TAILQ_HEAD(, struct namecache) v_cache_dst; /* Cache entries to us */
+ LIST_HEAD(, namecache) v_cache_src; /* Cache entries from us */
+ TAILQ_HEAD(, namecache) v_cache_dst; /* Cache entries to us */
struct vnode *v_dd; /* .. vnode */
u_long v_ddid; /* .. capability identifier */
struct {
@@ -621,7 +621,7 @@ void vbusy __P((struct vnode *vp));
extern vop_t **default_vnodeop_p;
extern vop_t **spec_vnodeop_p;
-extern TAILQ_HEAD(tobefreelist, struct vnode)
+extern TAILQ_HEAD(tobefreelist, vnode)
vnode_tobefree_list; /* vnode free list */
#endif /* _KERNEL */
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index bea5aa8..ce48d43 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -745,7 +745,7 @@ softdep_flushfiles(oldmnt, flags, p)
/*
* Structures and routines associated with pagedep caching.
*/
-LIST_HEAD(pagedep_hashhead, struct pagedep) *pagedep_hashtbl;
+LIST_HEAD(pagedep_hashhead, pagedep) *pagedep_hashtbl;
u_long pagedep_hash; /* size of hash table - 1 */
#define PAGEDEP_HASH(mp, inum, lbn) \
(&pagedep_hashtbl[((((register_t)(mp)) >> 13) + (inum) + (lbn)) & \
@@ -816,7 +816,7 @@ top:
/*
* Structures and routines associated with inodedep caching.
*/
-LIST_HEAD(inodedep_hashhead, struct inodedep) *inodedep_hashtbl;
+LIST_HEAD(inodedep_hashhead, inodedep) *inodedep_hashtbl;
static u_long inodedep_hash; /* size of hash table - 1 */
static long num_inodedep; /* number of inodedep allocated */
#define INODEDEP_HASH(fs, inum) \
@@ -897,7 +897,7 @@ top:
/*
* Structures and routines associated with newblk caching.
*/
-LIST_HEAD(newblk_hashhead, struct newblk) *newblk_hashtbl;
+LIST_HEAD(newblk_hashhead, newblk) *newblk_hashtbl;
u_long newblk_hash; /* size of hash table - 1 */
#define NEWBLK_HASH(fs, inum) \
(&newblk_hashtbl[((((register_t)(fs)) >> 13) + (inum)) & newblk_hash])
diff --git a/sys/ufs/ffs/softdep.h b/sys/ufs/ffs/softdep.h
index f68b9ca..8bbc409 100644
--- a/sys/ufs/ffs/softdep.h
+++ b/sys/ufs/ffs/softdep.h
@@ -128,7 +128,7 @@
* per second to process the items on the queue.
*/
-/* LIST_HEAD(workhead, struct worklist); -- declared in buf.h */
+/* LIST_HEAD(workhead, worklist); -- declared in buf.h */
/*
* Each request can be linked onto a work queue through its worklist structure.
@@ -138,7 +138,7 @@
* and the macros below changed to use it.
*/
struct worklist {
- LIST_ENTRY(struct worklist) wk_list; /* list of work requests */
+ LIST_ENTRY(worklist) wk_list; /* list of work requests */
unsigned short wk_type; /* type of request */
unsigned short wk_state; /* state flags */
};
@@ -160,13 +160,13 @@ struct worklist {
/*
* Various types of lists
*/
-LIST_HEAD(dirremhd, struct dirrem);
-LIST_HEAD(diraddhd, struct diradd);
-LIST_HEAD(newblkhd, struct newblk);
-LIST_HEAD(inodedephd, struct inodedep);
-LIST_HEAD(allocindirhd, struct allocindir);
-LIST_HEAD(allocdirecthd, struct allocdirect);
-TAILQ_HEAD(allocdirectlst, struct allocdirect);
+LIST_HEAD(dirremhd, dirrem);
+LIST_HEAD(diraddhd, diradd);
+LIST_HEAD(newblkhd, newblk);
+LIST_HEAD(inodedephd, inodedep);
+LIST_HEAD(allocindirhd, allocindir);
+LIST_HEAD(allocdirecthd, allocdirect);
+TAILQ_HEAD(allocdirectlst, allocdirect);
/*
* The "pagedep" structure tracks the various dependencies related to
@@ -191,7 +191,7 @@ TAILQ_HEAD(allocdirectlst, struct allocdirect);
struct pagedep {
struct worklist pd_list; /* page buffer */
# define pd_state pd_list.wk_state /* check for multiple I/O starts */
- LIST_ENTRY(struct pagedep) pd_hash; /* hashed lookup */
+ LIST_ENTRY(pagedep) pd_hash; /* hashed lookup */
struct mount *pd_mnt; /* associated mount point */
ino_t pd_ino; /* associated file */
ufs_lbn_t pd_lbn; /* block within file */
@@ -250,12 +250,12 @@ struct pagedep {
struct inodedep {
struct worklist id_list; /* buffer holding inode block */
# define id_state id_list.wk_state /* inode dependency state */
- LIST_ENTRY(struct inodedep) id_hash; /* hashed lookup */
+ LIST_ENTRY(inodedep) id_hash; /* hashed lookup */
struct fs *id_fs; /* associated filesystem */
ino_t id_ino; /* dependent inode */
nlink_t id_nlinkdelta; /* saved effective link count */
struct dinode *id_savedino; /* saved dinode contents */
- LIST_ENTRY(struct inodedep) id_deps; /* bmsafemap's list of inodedep's */
+ LIST_ENTRY(inodedep) id_deps; /* bmsafemap's list of inodedep's */
struct buf *id_buf; /* related bmsafemap (if pending) */
off_t id_savedsize; /* file size saved during rollback */
struct workhead id_pendinghd; /* entries awaiting directory write */
@@ -274,11 +274,11 @@ struct inodedep {
* is not set (i.e., its cylinder group map has not been written).
*/
struct newblk {
- LIST_ENTRY(struct newblk) nb_hash; /* hashed lookup */
+ LIST_ENTRY(newblk) nb_hash; /* hashed lookup */
struct fs *nb_fs; /* associated filesystem */
ufs_daddr_t nb_newblkno; /* allocated block number */
int nb_state; /* state of bitmap dependency */
- LIST_ENTRY(struct newblk) nb_deps; /* bmsafemap's list of newblk's */
+ LIST_ENTRY(newblk) nb_deps; /* bmsafemap's list of newblk's */
struct bmsafemap *nb_bmsafemap; /* associated bmsafemap */
};
@@ -321,13 +321,13 @@ struct bmsafemap {
struct allocdirect {
struct worklist ad_list; /* buffer holding block */
# define ad_state ad_list.wk_state /* block pointer state */
- TAILQ_ENTRY(struct allocdirect) ad_next; /* inodedep's list of allocdirect's */
+ TAILQ_ENTRY(allocdirect) ad_next; /* inodedep's list of allocdirect's */
ufs_lbn_t ad_lbn; /* block within file */
ufs_daddr_t ad_newblkno; /* new value of block pointer */
ufs_daddr_t ad_oldblkno; /* old value of block pointer */
long ad_newsize; /* size of new block */
long ad_oldsize; /* size of old block */
- LIST_ENTRY(struct allocdirect) ad_deps; /* bmsafemap's list of allocdirect's */
+ LIST_ENTRY(allocdirect) ad_deps; /* bmsafemap's list of allocdirect's */
struct buf *ad_buf; /* cylgrp buffer (if pending) */
struct inodedep *ad_inodedep; /* associated inodedep */
struct freefrag *ad_freefrag; /* fragment to be freed (if any) */
@@ -375,13 +375,13 @@ struct indirdep {
struct allocindir {
struct worklist ai_list; /* buffer holding indirect block */
# define ai_state ai_list.wk_state /* indirect block pointer state */
- LIST_ENTRY(struct allocindir) ai_next; /* indirdep's list of allocindir's */
+ LIST_ENTRY(allocindir) ai_next; /* indirdep's list of allocindir's */
int ai_offset; /* pointer offset in indirect block */
ufs_daddr_t ai_newblkno; /* new block pointer value */
ufs_daddr_t ai_oldblkno; /* old block pointer value */
struct freefrag *ai_freefrag; /* block to be freed when complete */
struct indirdep *ai_indirdep; /* address of associated indirdep */
- LIST_ENTRY(struct allocindir) ai_deps; /* bmsafemap's list of allocindir's */
+ LIST_ENTRY(allocindir) ai_deps; /* bmsafemap's list of allocindir's */
struct buf *ai_buf; /* cylgrp buffer (if pending) */
};
@@ -478,7 +478,7 @@ struct freefile {
struct diradd {
struct worklist da_list; /* id_inowait or id_pendinghd list */
# define da_state da_list.wk_state /* state of the new directory entry */
- LIST_ENTRY(struct diradd) da_pdlist; /* pagedep holding directory block */
+ LIST_ENTRY(diradd) da_pdlist; /* pagedep holding directory block */
doff_t da_offset; /* offset of new dir entry in dir blk */
ino_t da_newinum; /* inode number for the new dir entry */
union {
@@ -518,9 +518,9 @@ struct mkdir {
# define md_state md_list.wk_state /* type: MKDIR_PARENT or MKDIR_BODY */
struct diradd *md_diradd; /* associated diradd */
struct buf *md_buf; /* MKDIR_BODY: buffer holding dir */
- LIST_ENTRY(struct mkdir) md_mkdirs; /* list of all mkdirs */
+ LIST_ENTRY(mkdir) md_mkdirs; /* list of all mkdirs */
};
-LIST_HEAD(mkdirlist, struct mkdir) mkdirlisthd;
+LIST_HEAD(mkdirlist, mkdir) mkdirlisthd;
/*
* A "dirrem" structure describes an operation to decrement the link
@@ -536,7 +536,7 @@ LIST_HEAD(mkdirlist, struct mkdir) mkdirlisthd;
struct dirrem {
struct worklist dm_list; /* delayed worklist */
# define dm_state dm_list.wk_state /* state of the old directory entry */
- LIST_ENTRY(struct dirrem) dm_next; /* pagedep's list of dirrem's */
+ LIST_ENTRY(dirrem) dm_next; /* pagedep's list of dirrem's */
struct mount *dm_mnt; /* associated mount point */
ino_t dm_oldinum; /* inum of the removed dir entry */
union {
diff --git a/sys/ufs/ufs/extattr.h b/sys/ufs/ufs/extattr.h
index bbc310f..c2d1eee 100644
--- a/sys/ufs/ufs/extattr.h
+++ b/sys/ufs/ufs/extattr.h
@@ -74,9 +74,9 @@ MALLOC_DECLARE(M_EXTATTR);
#endif
struct vnode;
-LIST_HEAD(ufs_extattr_list_head, struct ufs_extattr_list_entry);
+LIST_HEAD(ufs_extattr_list_head, ufs_extattr_list_entry);
struct ufs_extattr_list_entry {
- LIST_ENTRY(struct ufs_extattr_list_entry) uele_entries;
+ LIST_ENTRY(ufs_extattr_list_entry) uele_entries;
struct ufs_extattr_fileheader uele_fileheader;
char uele_attrname[UFS_EXTATTR_MAXEXTATTRNAME];
struct vnode *uele_backing_vnode;
diff --git a/sys/ufs/ufs/inode.h b/sys/ufs/ufs/inode.h
index 206babd..83960b0 100644
--- a/sys/ufs/ufs/inode.h
+++ b/sys/ufs/ufs/inode.h
@@ -67,7 +67,7 @@ typedef long ufs_lbn_t;
*/
struct inode {
struct lock i_lock; /* Inode lock. >Keep this first< */
- LIST_ENTRY(struct inode) i_hash;/* Hash chain. */
+ LIST_ENTRY(inode) i_hash;/* Hash chain. */
struct vnode *i_vnode;/* Vnode associated with this inode. */
struct vnode *i_devvp;/* Vnode for block I/O. */
u_int32_t i_flag; /* flags, see below */
diff --git a/sys/ufs/ufs/quota.h b/sys/ufs/ufs/quota.h
index 0ead861..f8299ee 100644
--- a/sys/ufs/ufs/quota.h
+++ b/sys/ufs/ufs/quota.h
@@ -119,8 +119,8 @@ struct dqblk {
* used entries.
*/
struct dquot {
- LIST_ENTRY(struct dquot) dq_hash; /* hash list */
- TAILQ_ENTRY(struct dquot) dq_freelist; /* free list */
+ LIST_ENTRY(dquot) dq_hash; /* hash list */
+ TAILQ_ENTRY(dquot) dq_freelist; /* free list */
u_int16_t dq_flags; /* flags, see below */
u_int16_t dq_cnt; /* count of active references */
u_int16_t dq_spare; /* unused spare padding */
diff --git a/sys/ufs/ufs/ufs_ihash.c b/sys/ufs/ufs/ufs_ihash.c
index 39e0c11..0a7c7d5 100644
--- a/sys/ufs/ufs/ufs_ihash.c
+++ b/sys/ufs/ufs/ufs_ihash.c
@@ -50,7 +50,7 @@ static MALLOC_DEFINE(M_UFSIHASH, "UFS ihash", "UFS Inode hash tables");
/*
* Structures associated with inode cacheing.
*/
-static LIST_HEAD(ihashhead, struct inode) *ihashtbl;
+static LIST_HEAD(ihashhead, inode) *ihashtbl;
static u_long ihash; /* size of hash table - 1 */
#define INOHASH(device, inum) (&ihashtbl[(minor(device) + (inum)) & ihash])
#ifndef NULL_SIMPLELOCKS
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c
index 208cefa..6203e45 100644
--- a/sys/ufs/ufs/ufs_quota.c
+++ b/sys/ufs/ufs/ufs_quota.c
@@ -701,14 +701,14 @@ again:
*/
#define DQHASH(dqvp, id) \
(&dqhashtbl[((((intptr_t)(dqvp)) >> 8) + id) & dqhash])
-static LIST_HEAD(dqhash, struct dquot) *dqhashtbl;
+static LIST_HEAD(dqhash, dquot) *dqhashtbl;
static u_long dqhash;
/*
* Dquot free list.
*/
#define DQUOTINC 5 /* minimum free dquots desired */
-static TAILQ_HEAD(dqfreelist, struct dquot) dqfreelist;
+static TAILQ_HEAD(dqfreelist, dquot) dqfreelist;
static long numdquot, desireddquot = DQUOTINC;
/*
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index d6b5913..62a3bbe 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -86,10 +86,10 @@ typedef u_char objtype_t;
*/
struct vm_object {
- TAILQ_ENTRY(struct vm_object) object_list; /* list of all objects */
- TAILQ_HEAD(, struct vm_object) shadow_head; /* objects that this is a shadow for */
- TAILQ_ENTRY(struct vm_object) shadow_list; /* chain of shadow objects */
- TAILQ_HEAD(, struct vm_page) memq; /* list of resident pages */
+ TAILQ_ENTRY(vm_object) object_list; /* list of all objects */
+ TAILQ_HEAD(, vm_object) shadow_head; /* objects that this is a shadow for */
+ TAILQ_ENTRY(vm_object) shadow_list; /* chain of shadow objects */
+ TAILQ_HEAD(, vm_page) memq; /* list of resident pages */
int generation; /* generation ID */
vm_size_t size; /* Object size */
int ref_count; /* How many refs?? */
@@ -102,7 +102,7 @@ struct vm_object {
int resident_page_count; /* number of resident pages */
struct vm_object *backing_object; /* object that I'm a shadow of */
vm_ooffset_t backing_object_offset;/* Offset in backing object */
- TAILQ_ENTRY(struct vm_object) pager_object_list; /* list of all objects of this pager type */
+ TAILQ_ENTRY(vm_object) pager_object_list; /* list of all objects of this pager type */
void *handle;
union {
/*
@@ -120,7 +120,7 @@ struct vm_object {
* devp_pglist - list of allocated pages
*/
struct {
- TAILQ_HEAD(, struct vm_page) devp_pglist;
+ TAILQ_HEAD(, vm_page) devp_pglist;
} devp;
/*
@@ -129,7 +129,7 @@ struct vm_object {
* physp_pglist - list of allocated pages
*/
struct {
- TAILQ_HEAD(, struct vm_page) physp_pglist;
+ TAILQ_HEAD(, vm_page) physp_pglist;
} physp;
/*
@@ -167,7 +167,7 @@ struct vm_object {
#define OBJPC_INVAL 0x2 /* invalidate */
#define OBJPC_NOSYNC 0x4 /* skip if PG_NOSYNC */
-TAILQ_HEAD(object_q, struct vm_object);
+TAILQ_HEAD(object_q, vm_object);
extern struct object_q vm_object_list; /* list of allocated objects */
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index 4e3d273..e61be7f 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -107,12 +107,12 @@
* NFS to implement piecemeal writes.
*/
-TAILQ_HEAD(pglist, struct vm_page);
+TAILQ_HEAD(pglist, vm_page);
struct vm_page {
- TAILQ_ENTRY(struct vm_page) pageq; /* queue info for FIFO queue or free list (P) */
+ TAILQ_ENTRY(vm_page) pageq; /* queue info for FIFO queue or free list (P) */
struct vm_page *hnext; /* hash table link (O,P) */
- TAILQ_ENTRY(struct vm_page) listq; /* pages in same object (O) */
+ TAILQ_ENTRY(vm_page) listq; /* pages in same object (O) */
vm_object_t object; /* which object am I in (O,P)*/
vm_pindex_t pindex; /* offset into object (O,P) */
diff --git a/sys/vm/vm_pager.h b/sys/vm/vm_pager.h
index ccc3a35..df0befa 100644
--- a/sys/vm/vm_pager.h
+++ b/sys/vm/vm_pager.h
@@ -48,7 +48,7 @@
#include <sys/queue.h>
-TAILQ_HEAD(pagerlst, struct vm_object);
+TAILQ_HEAD(pagerlst, vm_object);
struct bio;
diff --git a/tools/diag/dumpvfscache/dumpvfscache.c b/tools/diag/dumpvfscache/dumpvfscache.c
index 93dd72c..b1a23af 100644
--- a/tools/diag/dumpvfscache/dumpvfscache.c
+++ b/tools/diag/dumpvfscache/dumpvfscache.c
@@ -55,7 +55,7 @@ main(int argc, char **argv)
int nchash, i, j, k, kn;
int nb, p1, p2;
u_long p;
- LIST_HEAD(nchashhead, struct namecache) *nchashtbl;
+ LIST_HEAD(nchashhead, namecache) *nchashtbl;
struct namecache *nc;
struct vnode vn;
diff --git a/usr.bin/doscmd/callback.c b/usr.bin/doscmd/callback.c
index 3579233..890c714 100644
--- a/usr.bin/doscmd/callback.c
+++ b/usr.bin/doscmd/callback.c
@@ -13,13 +13,13 @@
*/
struct callback {
- LIST_ENTRY(struct callback) chain;
+ LIST_ENTRY(callback) chain;
u_long vec;
callback_t func;
char *name;
};
-LIST_HEAD(cbhead, struct callback) cbhead[127];
+LIST_HEAD(cbhead , callback) cbhead[127];
#define CBHASH(x) (((x) * 17) % 127)
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c
index fd53125..e7d5f8b 100644
--- a/usr.bin/fetch/http.c
+++ b/usr.bin/fetch/http.c
@@ -68,13 +68,13 @@ struct http_state {
};
struct http_auth {
- TAILQ_ENTRY(struct http_auth) ha_link;
+ TAILQ_ENTRY(http_auth) ha_link;
char *ha_scheme;
char *ha_realm;
char *ha_params;
const struct http_auth_method *ha_ham;
};
-TAILQ_HEAD(http_auth_head, struct http_auth);
+TAILQ_HEAD(http_auth_head, http_auth);
static int http_parse(struct fetch_state *fs, const char *uri);
static int http_proxy_parse(struct fetch_state *fs, const char *uri);
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c
index 719f116..c87f696 100644
--- a/usr.bin/last/last.c
+++ b/usr.bin/last/last.c
@@ -74,12 +74,12 @@ typedef struct arg {
} ARG;
ARG *arglist; /* head of linked list */
-LIST_HEAD(ttylisthead, struct ttytab) ttylist;
+LIST_HEAD(ttylisthead, ttytab) ttylist;
struct ttytab {
time_t logout; /* log out time */
char tty[UT_LINESIZE + 1]; /* terminal name */
- LIST_ENTRY(struct ttytab) list;
+ LIST_ENTRY(ttytab) list;
};
static long currentout, /* current logout value */
diff --git a/usr.bin/more/tags.c b/usr.bin/more/tags.c
index 22cdc93..4a082e4 100644
--- a/usr.bin/more/tags.c
+++ b/usr.bin/more/tags.c
@@ -373,9 +373,9 @@ found:
/*
* The queue of tags generated by the last findgtag() call.
*/
-static CIRCLEQ_HEAD(gtag_q, struct gtag) gtag_q;
+static CIRCLEQ_HEAD(gtag_q, gtag) gtag_q;
struct gtag {
- CIRCLEQ_ENTRY(struct gtag) ptrs;
+ CIRCLEQ_ENTRY(gtag) ptrs;
char *file; /* source file containing the tag */
int line; /* appropriate line number of source file */
};
diff --git a/usr.sbin/i4b/isdnd/isdnd.h b/usr.sbin/i4b/isdnd/isdnd.h
index 24e57fa..9565915 100644
--- a/usr.sbin/i4b/isdnd/isdnd.h
+++ b/usr.sbin/i4b/isdnd/isdnd.h
@@ -471,7 +471,7 @@ struct rarr {
#ifdef I4B_EXTERNAL_MONITOR
/* for each rights entry we keep one of this structures around: */
struct monitor_rights {
- TAILQ_ENTRY(struct monitor_rights) list; /* a list of this structures */
+ TAILQ_ENTRY(monitor_rights) list; /* a list of this structures */
char name[FILENAME_MAX]; /* net/host spec or filename */
int rights; /* bitmask of allowed acces rights */
u_int32_t net; /* net/host address (host byte order!) */
diff --git a/usr.sbin/i4b/isdnd/monitor.c b/usr.sbin/i4b/isdnd/monitor.c
index 79d7ed0..dd6d2cd 100644
--- a/usr.sbin/i4b/isdnd/monitor.c
+++ b/usr.sbin/i4b/isdnd/monitor.c
@@ -75,21 +75,21 @@ void monitor_fixup_rights()
#endif
-static TAILQ_HEAD(rights_q, struct monitor_rights) rights = TAILQ_HEAD_INITIALIZER(rights);
+static TAILQ_HEAD(rights_q, monitor_rights) rights = TAILQ_HEAD_INITIALIZER(rights);
static struct monitor_rights * local_rights = NULL; /* entry for local socket */
/* for each active monitor connection we have one of this: */
struct monitor_connection {
- TAILQ_ENTRY(struct monitor_connection) connections;
+ TAILQ_ENTRY(monitor_connection) connections;
int sock; /* socket for this connection */
int rights; /* active rights for this connection */
int events; /* bitmask of events client is interested in */
char source[FILENAME_MAX];
};
-static TAILQ_HEAD(connections_tq, struct monitor_connection) connections = TAILQ_HEAD_INITIALIZER(connections);
+static TAILQ_HEAD(connections_tq, monitor_connection) connections = TAILQ_HEAD_INITIALIZER(connections);
/* local prototypes */
static int cmp_rights(const struct monitor_rights *pa, const struct monitor_rights *pb);
diff --git a/usr.sbin/lpr/chkprintcap/chkprintcap.c b/usr.sbin/lpr/chkprintcap/chkprintcap.c
index 27ff7ca..8b84656 100644
--- a/usr.sbin/lpr/chkprintcap/chkprintcap.c
+++ b/usr.sbin/lpr/chkprintcap/chkprintcap.c
@@ -152,13 +152,13 @@ interpret_error(const struct printer *pp, int error)
* a single loop.
*/
struct dirlist {
- LIST_ENTRY(struct dirlist) link;
+ LIST_ENTRY(dirlist) link;
struct stat stab;
char *path;
char *printer;
};
-static LIST_HEAD(, struct dirlist) dirlist;
+static LIST_HEAD(, dirlist) dirlist;
static int
lessp(const struct dirlist *a, const struct dirlist *b)
diff --git a/usr.sbin/lpr/common_source/lp.h b/usr.sbin/lpr/common_source/lp.h
index e2bfc15..c7a960e 100644
--- a/usr.sbin/lpr/common_source/lp.h
+++ b/usr.sbin/lpr/common_source/lp.h
@@ -91,24 +91,24 @@ struct printer {
* reversed in process.
*/
struct req_user {
- TAILQ_ENTRY(struct req_user) ru_link; /* macro glue */
+ TAILQ_ENTRY(req_user) ru_link; /* macro glue */
char ru_uname[1]; /* name of user */
};
-TAILQ_HEAD(req_user_head, struct req_user);
+TAILQ_HEAD(req_user_head, req_user);
struct req_file {
- TAILQ_ENTRY(struct req_file) rf_link; /* macro glue */
+ TAILQ_ENTRY(req_file) rf_link; /* macro glue */
char rf_type; /* type (lowercase cf file letter) of file */
char *rf_prettyname; /* user-visible name of file */
char rf_fname[1]; /* name of file */
};
-TAILQ_HEAD(req_file_head, struct req_file);
+TAILQ_HEAD(req_file_head, req_file);
struct req_jobid {
- TAILQ_ENTRY(struct req_jobid) rj_link; /* macro glue */
+ TAILQ_ENTRY(req_jobid) rj_link; /* macro glue */
int rj_job; /* job number */
};
-TAILQ_HEAD(req_jobid_head, struct req_jobid);
+TAILQ_HEAD(req_jobid_head, req_jobid);
/*
* Encapsulate all the information relevant to a request in the
diff --git a/usr.sbin/mlxcontrol/mlxcontrol.h b/usr.sbin/mlxcontrol/mlxcontrol.h
index e8f322f..f0225b5 100644
--- a/usr.sbin/mlxcontrol/mlxcontrol.h
+++ b/usr.sbin/mlxcontrol/mlxcontrol.h
@@ -58,7 +58,7 @@ extern void mlx_print_phys_drv(struct mlx_phys_drv *drv, int channel, int target
struct conf_phys_drv
{
- TAILQ_ENTRY(struct conf_phys_drv) pd_link;
+ TAILQ_ENTRY(conf_phys_drv) pd_link;
int pd_bus;
int pd_target;
struct mlx_phys_drv pd_drv;
@@ -66,23 +66,23 @@ struct conf_phys_drv
struct conf_span
{
- TAILQ_ENTRY(struct conf_span) s_link;
+ TAILQ_ENTRY(conf_span) s_link;
struct conf_phys_drv *s_drvs[8];
struct mlx_sys_drv_span s_span;
};
struct conf_sys_drv
{
- TAILQ_ENTRY(struct conf_sys_drv) sd_link;
+ TAILQ_ENTRY(conf_sys_drv) sd_link;
struct conf_span *sd_spans[4];
struct mlx_sys_drv sd_drv;
};
struct conf_config
{
- TAILQ_HEAD(, struct conf_phys_drv) cc_phys_drvs;
- TAILQ_HEAD(, struct conf_span) cc_spans;
- TAILQ_HEAD(, struct conf_sys_drv) cc_sys_drvs;
+ TAILQ_HEAD(,conf_phys_drv) cc_phys_drvs;
+ TAILQ_HEAD(,conf_span) cc_spans;
+ TAILQ_HEAD(,conf_sys_drv) cc_sys_drvs;
struct conf_sys_drv *cc_drives[32];
struct mlx_core_cfg cc_cfg;
};
diff --git a/usr.sbin/mtree/excludes.c b/usr.sbin/mtree/excludes.c
index 7659eec..47ab298 100644
--- a/usr.sbin/mtree/excludes.c
+++ b/usr.sbin/mtree/excludes.c
@@ -48,11 +48,11 @@ static const char rcsid[] =
* so it's OK to use a stupid algorithm.
*/
struct exclude {
- LIST_ENTRY(struct exclude) link;
+ LIST_ENTRY(exclude) link;
const char *glob;
int pathname;
};
-static LIST_HEAD(, struct exclude) excludes;
+static LIST_HEAD(, exclude) excludes;
void
init_excludes(void)
diff --git a/usr.sbin/pw/pw.h b/usr.sbin/pw/pw.h
index 7718039..aa437ec 100644
--- a/usr.sbin/pw/pw.h
+++ b/usr.sbin/pw/pw.h
@@ -66,10 +66,10 @@ struct carg
{
int ch;
char *val;
- LIST_ENTRY(struct carg) list;
+ LIST_ENTRY(carg) list;
};
-extern LIST_HEAD(cargs, struct carg) arglist;
+extern LIST_HEAD(cargs, carg) arglist;
struct userconf
{
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 484b3c6..ca5391d 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -178,13 +178,13 @@ struct filed {
* Queue of about-to-be dead processes we should watch out for.
*/
-TAILQ_HEAD(stailhead, struct deadq_entry) deadq_head;
+TAILQ_HEAD(stailhead, deadq_entry) deadq_head;
struct stailhead *deadq_headp;
struct deadq_entry {
pid_t dq_pid;
int dq_timeout;
- TAILQ_ENTRY(struct deadq_entry) dq_entries;
+ TAILQ_ENTRY(deadq_entry) dq_entries;
};
/*
diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c
index 45643e7..a513870 100644
--- a/usr.sbin/tzsetup/tzsetup.c
+++ b/usr.sbin/tzsetup/tzsetup.c
@@ -146,12 +146,12 @@ struct country {
int nzones;
char *filename; /* use iff nzones < 0 */
struct continent *continent; /* use iff nzones < 0 */
- TAILQ_HEAD(, struct zone) zones; /* use iff nzones > 0 */
+ TAILQ_HEAD(, zone) zones; /* use iff nzones > 0 */
dialogMenuItem *submenu; /* use iff nzones > 0 */
};
struct zone {
- TAILQ_ENTRY(struct zone) link;
+ TAILQ_ENTRY(zone) link;
char *descr;
char *filename;
struct continent *continent;
diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c
index 899fd95..06e7637 100644
--- a/usr.sbin/usbd/usbd.c
+++ b/usr.sbin/usbd/usbd.c
@@ -143,10 +143,10 @@ typedef struct action_s {
char *attach; /* commands to execute */
char *detach;
- STAILQ_ENTRY(struct action_s) next;
+ STAILQ_ENTRY(action_s) next;
} action_t;
-STAILQ_HEAD(action_list, struct action_s) actions = STAILQ_HEAD_INITIALIZER(actions);
+STAILQ_HEAD(action_list, action_s) actions = STAILQ_HEAD_INITIALIZER(actions);
typedef struct action_match_s {
action_t *action;
diff --git a/usr.sbin/ypserv/yp_dblookup.c b/usr.sbin/ypserv/yp_dblookup.c
index a9ce0ce..f558b05 100644
--- a/usr.sbin/ypserv/yp_dblookup.c
+++ b/usr.sbin/ypserv/yp_dblookup.c
@@ -79,11 +79,11 @@ struct dbent {
int flags;
};
-static CIRCLEQ_HEAD(circlehead, struct circleq_entry) qhead;
+static CIRCLEQ_HEAD(circlehead, circleq_entry) qhead;
struct circleq_entry {
struct dbent *dbptr;
- CIRCLEQ_ENTRY(struct circleq_entry) links;
+ CIRCLEQ_ENTRY(circleq_entry) links;
};
/*
diff --git a/usr.sbin/ypserv/yp_dnslookup.c b/usr.sbin/ypserv/yp_dnslookup.c
index 1ef76aa..3a62694 100644
--- a/usr.sbin/ypserv/yp_dnslookup.c
+++ b/usr.sbin/ypserv/yp_dnslookup.c
@@ -105,7 +105,7 @@ static char *parse(hp)
extern struct hostent *__dns_getanswer __P((char *, int, char *, int));
-static CIRCLEQ_HEAD(dns_qhead, struct circleq_dnsentry) qhead;
+static CIRCLEQ_HEAD(dns_qhead, circleq_dnsentry) qhead;
struct circleq_dnsentry {
SVCXPRT *xprt;
@@ -119,7 +119,7 @@ struct circleq_dnsentry {
char **domain;
char *name;
struct in_addr addr;
- CIRCLEQ_ENTRY(struct circleq_dnsentry) links;
+ CIRCLEQ_ENTRY(circleq_dnsentry) links;
};
static int pending = 0;
OpenPOWER on IntegriCloud