From owner-freebsd-arch@FreeBSD.ORG Sun May 27 16:22:12 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0AA2F1065672 for ; Sun, 27 May 2012 16:22:12 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C361C8FC19 for ; Sun, 27 May 2012 16:22:11 +0000 (UTC) Received: by obcni5 with SMTP id ni5so5488833obc.13 for ; Sun, 27 May 2012 09:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=2T4M2yrOSJB4ztn5XRBiqwoJgEhsYzJ4rbeK6W7Rbl4=; b=AXJb4ux4hA7pq+pbGXPssQ7zwQ3fne9MiN4Dis3JYxgF6KUw9ZpmYF3ajeFshEf62x JshPco9ZvprtQch60RaQE/ED27skEMhGGkzCl0E6JSuryhhyLNvEmrP8OkY3md9is1wz /L/qCWEtDZGzezYXBNcdE0TtRieeVTZWK+bbPyfR8qqs/elzBe2W3FCqDgBO8DMtDlg1 Q33DFs4qz2UGT7RpC/zmqkZUrKMxzG6kbpeYD8cOK69xMUiU4aVoTTM7m7S4ZsNV6phk 5qLuTcxWVwbBdS7MteVU8j4wP1jzt39JwRBDfGlZY9N3OkXydnIq6HhKQQKPhx+I8NIm DT4g== MIME-Version: 1.0 Received: by 10.50.149.129 with SMTP id ua1mr2776036igb.43.1338135731004; Sun, 27 May 2012 09:22:11 -0700 (PDT) Sender: rmh.aybabtu@gmail.com Received: by 10.42.202.84 with HTTP; Sun, 27 May 2012 09:22:10 -0700 (PDT) In-Reply-To: <20120519134005.GJ2358@deviant.kiev.zoral.com.ua> References: <20120519134005.GJ2358@deviant.kiev.zoral.com.ua> Date: Sun, 27 May 2012 18:22:10 +0200 X-Google-Sender-Auth: vlHsJ8bKVAiH4YZpZsNV5zuZeSc Message-ID: From: Robert Millan To: Konstantin Belousov Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arch@freebsd.org Subject: Re: headers that use "struct bintime" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2012 16:22:12 -0000 2012/5/19 Konstantin Belousov : >> 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 lib/libgeom/geom_stats.c:#include usr.bin/kdump/ioctl.c:#include sbin/mdconfig/mdconfig.c:#include and also into sys/cam/, some of which is in userland too (built into libcam): sys/cam/ata/ata_pmp.c:#include sys/cam/ata/ata_da.c:#include sys/cam/scsi/scsi_pt.c:#include sys/cam/scsi/scsi_pass.c:#include sys/cam/scsi/scsi_targ_bh.c:#include sys/cam/scsi/scsi_sa.c:#include sys/cam/scsi/scsi_da.c:#include sys/cam/scsi/scsi_target.c:#include sys/cam/scsi/scsi_sg.c:#include sys/cam/scsi/scsi_cd.c:#include sys/cam/cam_periph.c:#include -- Robert Millan