[DCR] Remove devstat

From: Sue Howard (howardsue_at_gmail.com)
Date: 06/14/05

  • Next message: Poul-Henning Kamp: "Re: [DCR] Remove devstat"
    Date: Tue, 14 Jun 2005 19:33:01 +0800
    To: arch@freebsd.org, ken@freebsd.org
    
    

    Hi,

    I found devstat is not widely used in the device drivers. Based the
    grep result of 'devstat_new_entry', it shows only cam, ata, fd,
    geom_disk are using it. In my workstation, the output of 'sysctl
    kern.devstat' shows:

    kern.devstat.version: 6
    kern.devstat.generation: 229
    kern.devstat.numdevs: 2

    I am wondering if devstat can be replaced by the sysctl nodes %desc,
    %pnpinfo etc that jhb introduced. Almost all the information devstat
    can provide can be also exposed by such sysctl node.

    I have plan to introduce a new node named status so that userland can
    disable on individual device. Before that, I want to understand some
    related stuffs.

    Any comments about this?

    Howard Sue
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Poul-Henning Kamp: "Re: [DCR] Remove devstat"

    Relevant Pages

    • Re: [DCR] Remove devstat
      ... >I found devstat is not widely used in the device drivers. ... >can provide can be also exposed by such sysctl node. ... The old access path uses sysctls, ...
      (freebsd-arch)
    • Fwd: [DCR] Remove devstat
      ... >>I found devstat is not widely used in the device drivers. ... Almost all the information devstat ... I am confused because, in the devstat.h file, it defines an enum ...
      (freebsd-arch)