diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2012-05-23 14:36:24 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2012-05-23 14:36:24 -0500 |
commit | ae53d9e7930fd559ff3f3207edb55d0b08936d66 (patch) | |
tree | feded74e561cbb239193b3217d757e38dbc63220 | |
parent | rtems-bsd-malloc.c - Add _bsd_reallocf() (diff) | |
download | rtems-libbsd-ae53d9e7930fd559ff3f3207edb55d0b08936d66.tar.bz2 |
Commented out elements of the cdev struct which were unused
This was in preperation for adding RTEMS versions of make_dev and
destroy_dev.
-rw-r--r-- | freebsd/sys/conf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/conf.h b/freebsd/sys/conf.h index a75625b1..86e29c4d 100644 --- a/freebsd/sys/conf.h +++ b/freebsd/sys/conf.h @@ -64,6 +64,7 @@ struct cdev { #define SI_DUMPDEV 0x0080 /* is kernel dumpdev */ #define SI_CANDELETE 0x0100 /* can do BIO_DELETE */ #define SI_CLONELIST 0x0200 /* on a clone list */ +#ifndef __rtems__ struct timespec si_atime; struct timespec si_ctime; struct timespec si_mtime; @@ -71,7 +72,9 @@ struct cdev { gid_t si_gid; mode_t si_mode; struct ucred *si_cred; /* cached clone-time credential */ +#endif /* __rtems__ */ int si_drv0; +#ifndef __rtems__ int si_refcount; LIST_ENTRY(cdev) si_list; LIST_ENTRY(cdev) si_clone; @@ -79,7 +82,9 @@ struct cdev { LIST_ENTRY(cdev) si_siblings; struct cdev *si_parent; char *si_name; +#endif /* __rtems__ */ void *si_drv1, *si_drv2; +#ifndef __rtems__ struct cdevsw *si_devsw; int si_iosize_max; /* maximum I/O size (for physio &al) */ u_long si_usecount; @@ -88,6 +93,7 @@ struct cdev { struct snapdata *__sid_snapdata; } __si_u; char __si_namebuf[SPECNAMELEN + 1]; +#endif /* __rtems__ */ }; #define si_snapdata __si_u.__sid_snapdata |