to list all the devices in freebsd &definition analyse

From: kylin (fierykylin_at_gmail.com)
Date: 11/27/05

  • Next message: Matthew Hagerty: "Re: Running a shell script on becoming the CARP master?"
    Date: Sun, 27 Nov 2005 10:55:55 +0800
    To: freebsd-questions@freebsd.org, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
    
    

    I
    i can use pciconf in freebsd to list the pci device ,but how to list
    the device tree in freeebsd?
    II
    i got some anornymous definition on devclass driver and device that
    differ from the current man page
    i think they seems reasonable but how can devclass Represents a bus
    or leaf device driver while driver still Represents a bus or
    leaf-level end-device driver ?
    and device is just a instance of bus or (leaf) end-device.??
    is it oop? can the disigner of the arch show us a word?:)

    devclass
    Represents a bus or leaf device driver, e.g. pci_devclass (PCI bus),
    ahc_devclass (Adaptec SCSI host-bus adapter). It contains a list of
    drivers that belong to it. At run-time it also has a list populated by
    device instances of this class indexed by unit numbers.
    driver
    Represents a bus or leaf-level end-device driver. Each driver forms a
    devclass. All drivers are attached to single parent devclass (with the
    exception of root_devclass). Drivers have list of methods/operations
    e.g. probe/attach that are also inherited by it's instance devices.
    device
    Represents an instance of bus or (leaf) end-device. All devices have
    unique unit numbers in class to which they belong. Each device has one
    parent and may have a list of children. Devices inherit their
    operations and class from driver to which they belong. Device can be
    in any of the states as defined in device_state_t below

    --
    we who r about to die,salute u!
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Matthew Hagerty: "Re: Running a shell script on becoming the CARP master?"

    Relevant Pages

    • Re: to list all the devices in freebsd &definition analyse
      ... i can use pciconf in freebsd to list the pci device,but how to list ... i got some anornymous definition on devclass driver and device that ... i think they seems reasonable but how can devclass Represents a bus ...
      (freebsd-hackers)
    • Re: to list all the devices in freebsd &definition analyse
      ... i can use pciconf in freebsd to list the pci device,but how to list ... i got some anornymous definition on devclass driver and device that ... i think they seems reasonable but how can devclass Represents a bus ...
      (freebsd-questions)
    • to list all the devices in freebsd &definition analyse
      ... i got some anornymous definition on devclass driver and device that ... i think they seems reasonable but how can devclass Represents a bus ... Represents a bus or leaf-level end-device driver. ...
      (freebsd-questions)
    • Re: IPSEC/crypto is broken in FreeBSD/powerpc 7.0-RELEASE!
      ... information from the OF in the probe routine (should be probably attach ... : child to the newbus. ... in the NULL devclass to every driver registered in the system. ...
      (freebsd-current)
    • Re: misc questions about the device&driver arch
      ... just create a new devclass,and link it self into the parent ... busdevice's driver link and do nothing .what is the use of the driver ... that with some hardware mechanisms the pci bridge driver can do global pci ... resource window reconfiguration.so good to the hotplugin pci device for it ...
      (freebsd-hackers)