Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2012 18:22:10 +0200
From:      Robert Millan <rmh@freebsd.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: headers that use "struct bintime"
Message-ID:  <CAOfDtXOZe5vkoBHbZtmS4puYOM9sYR7=JVuOXS4kxnCHK6wSKA@mail.gmail.com>
In-Reply-To: <20120519134005.GJ2358@deviant.kiev.zoral.com.ua>
References:  <CAOfDtXPidEVGHDeZWTQyk-X6pabc0HBqWLdNJG_zRgX=7iKgWg@mail.gmail.com> <20120519134005.GJ2358@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
2012/5/19 Konstantin Belousov <kostikbel@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfDtXOZe5vkoBHbZtmS4puYOM9sYR7=JVuOXS4kxnCHK6wSKA>