struct vnode *si_specnext;
long si_flags;
dev_t si_rdev;
+ int32_t si_opencount;
daddr_t si_size; /* device block size in bytes */
daddr64_t si_lastr; /* last read blkno (read-ahead) */
u_int64_t si_devsize; /* actual device size in bytes */
+
+ u_int8_t si_initted;
+ u_int8_t si_throttleable;
+ u_int16_t si_isssd;
+ u_int32_t si_devbsdunit;
+ u_int64_t si_throttle_mask;
};
/*
* Exported shorthand
*/
#define SPECHSZ 64
#if ((SPECHSZ&(SPECHSZ-1)) == 0)
-#define SPECHASH(rdev) (((rdev>>5)+(rdev))&(SPECHSZ-1))
+#define SPECHASH(rdev) (((rdev>>21)+(rdev))&(SPECHSZ-1))
#else
-#define SPECHASH(rdev) (((unsigned)((rdev>>5)+(rdev)))%SPECHSZ)
+#define SPECHASH(rdev) (((unsigned)((rdev>>21)+(rdev)))%SPECHSZ)
#endif
extern struct vnode *speclisth[SPECHSZ];
int spec_offtoblk (struct vnop_offtoblk_args *);
int spec_fsync_internal (vnode_t, int, vfs_context_t);
int spec_blockmap (struct vnop_blockmap_args *);
-int spec_kqfilter (vnode_t vp, struct knote *kn);
+int spec_kqfilter (vnode_t vp, struct knote *kn, struct kevent_internal_s *kev);
#endif /* BSD_KERNEL_PRIVATE */
int spec_ebadf(void *);