headers that use "struct bintime"

Robert Millan rmh at freebsd.org
Sun May 27 16:22:12 UTC 2012


2012/5/19 Konstantin Belousov <kostikbel at gmail.com>:
>> sys/arm/include/cpu.h
>> sys/dev/iscsi/initiator/iscsivar.h
>> sys/geom/journal/g_journal.h
>> sys/sys/dtrace_bsd.h
>> sys/sys/devicestat.h
>> sys/sys/timeet.h
>> sys/sys/bio.h
>> sys/opencrypto/cryptodev.h
>>
> Note that all headers you listed are kernel headers, and kernel is exposed
> to the whole namespace. I suspect that no headers are supposed to be used
> by usermode among the list.

There's at least one case (sys/devicestat.h) which is widely exposed
to userland:

lib/libdevstat/devstat.h:#include <sys/devicestat.h>
lib/libgeom/geom_stats.c:#include <sys/devicestat.h>
usr.bin/kdump/ioctl.c:#include <sys/devicestat.h>
sbin/mdconfig/mdconfig.c:#include <sys/devicestat.h>

and also into sys/cam/, some of which is in userland too (built into libcam):

sys/cam/ata/ata_pmp.c:#include <sys/devicestat.h>
sys/cam/ata/ata_da.c:#include <sys/devicestat.h>
sys/cam/scsi/scsi_pt.c:#include <sys/devicestat.h>
sys/cam/scsi/scsi_pass.c:#include <sys/devicestat.h>
sys/cam/scsi/scsi_targ_bh.c:#include <sys/devicestat.h>
sys/cam/scsi/scsi_sa.c:#include <sys/devicestat.h>
sys/cam/scsi/scsi_da.c:#include <sys/devicestat.h>
sys/cam/scsi/scsi_target.c:#include <sys/devicestat.h>
sys/cam/scsi/scsi_sg.c:#include <sys/devicestat.h>
sys/cam/scsi/scsi_cd.c:#include <sys/devicestat.h>
sys/cam/cam_periph.c:#include <sys/devicestat.h>

-- 
Robert Millan


More information about the freebsd-arch mailing list