Linux Client Virtio Device initialization
The Virtio device is physically connected to the PCI physical bus and logically connected to the Virtio virtual bus. As a PCI device, it facilitates resource allocation and configuration, and facilitates management and organization in the logical device model.
Virtio PCI devices provided by 1.QEMU-KVM
VIRTIO-BLK (hard dis
Linux Device Model
Looking at the device model chapter in LDD3, I felt a bit confused. Here we will take a holistic approach.
This article summarizes some content from four aspects:
1. Underlying data structure: kobject, kset.
2. linux device Model Hierarchy: bus_type, device, device_driver.
3. Integration: Simple Analysis of PCI Device Driver Model instances and devices and device driver registration source code.
4. Application Analysis of Object-ori
defined in our driver code, it is the link between the driver and the PCI device. Rtl8139_pci_driver is defined as follows:Static struct pci_driver rtl8139_pci_driver = {Name: modname,Id_table: rtl8139_pci_tbl,Probe: rtl8139_init_one,Remove: rtl8139_remove_one,};Pci_module_init () is not defined in the driver code. You must have thought that it is a standard interface provided by the Linux kernel to the module. What does this interface do, I have tra
Kernel device model (switch)
This article summarizes some content from four aspects:1. Underlying data structure: kobject, kset.2. Linux Device Model Hierarchy: bus_type, device, device_driver.3. Integration: Simple Analysis of PCI Device Driver Model instances and devices and device driver registration source code.4. Application Analysis of Object-oriented Thinking in the Linux device model.
I. Underlying data structure: kobject, ksetLet's talk abou
Specifically: NicWork on the MAC Sub-layer in the data link layer, rather than the physical layer. Nic is used to convert parallel lines. That is, the MAC Sub-layer specifies how frame is transmitted on a physical line. The role of LLC is to identifyEncapsulation is performed based on different protocol types. The MAC address is burned into the NIC. Therefore, the NIC works on the data link layer. I. MAIN FEATURES OF NICs Network interface card (NIC), also known as network adapter, is a device
(Premium chipset feature setting) sets the relevant parameters for the chipset used by the motherboard.Integrated Peripherals (external device settings) allows the settings menu to include settings for all peripheral devices. such as sound card, Modem, USB keyboard is open ...Power Management Setup sets the energy-saving function of the CPU, hard disk, monitor and other devices.The PNP/PCI configurations (Plug and play/
$
Lspci |grep VGA
00:02.0 VGA compatible Controller:intel Corporation 4th Gen Core Processor Integrated Graphics Controller (Rev 06)
function : The command function: The output of the LSPCI as input, from which to find the line containing the VGA
Add:
PCI is the abbreviation for peripheral Component Interconnect (peripheral interconnect) and is commonly used as a peripheral bus on desktops and larger computers. The
HP Superdome locates and replaces the NIC
Assume that HP superdome has three partitions.
Partition 0 cell 0 cell 3
Partition 1 cell 2
Partition 2 cell1
How to locate the lan1 Nic (0/0/8/1/0)
# Ioscan-funClan
Class I H/W Path Driver S/W State H/W Type Description
========================================================== ==================================
Lan 0 0/0/1/1/0 iether claimed interface hp AD331-60001 PCI/
I am very interested in Linux systems. Common Linux sysfs features Linux itself is the core part of this operating system, that is, the operating system kernel. The kernel is the most basic program for completing operations. It is responsible for the startup and termination of other programs, such as text editor programs, memory application processing, hard disk access, and network connection management.
The key to using Linux sysfs is to master the usage of these sysfs attributes. The following
Detailed explanation of lspci commands in CentOS
Note:Lspci is a tool used to display all PCI bus devices in the system or all devices connected to the bus.
Parameters:
-V enables lspci to display the details of all devices in redundancy mode. -Vv enables lspci to display more detailed information in redundancy mode (in fact, everything that PCI devices can provide ). The exact meaning of the data is not ex
m.2 and SATA3 solid state hard Drive area Don't
What do you mean, m.2?
M.2 is a new solid-state hard disk interface, is an alternative msata new interface specification, which we used to refer to NGFF, English is all called: Next Generation Form Factor.
M.2 Interface SSD The main advantage is that the volume is smaller than the traditional SATA3.0 and mSATA, and the reading speed is faster, which is better for some mobile device compatibility.
The difference between m.2 and SATA3
for developers to debug udev rule files.# Echo add>/sys/devices/pci0000: 00/0000: 00: 02.5/uevent use the sysfs attribute file of the driver (PCI), bind, unbind and new_id in the device drive/sys/bus/*/driver /... we can see that many drivers have three attributes: bind, unbind, and new_id,# Find/sys/bus/*/drivers/-name bind-ls...
Each device driver specifies in a program the hardware that can be used. For example, all
motherboard
(1) Check the motherboard packing box or motherboard manual.
(2) press the pause key (pause break) to copy the number at the bottom of the screen. The front of the numbers is displayed.
Date. Don't worry about him. The information displayed in the last row of numbers containing letters is the motherboard model, including the manufacturer and Motherboard chipset.(3) Use test software such as Everest
Some testing software can measure various computer hardware configurations, such as t
1. Check the driver used by the network card[Email protected] ~]# ethtool-i em1driver:tg3version:3.122firmware-version:ffv7.4.8 BC 5720-v1.30bus-info:0000:01:0 0.02. See where TG3 is located[Email protected] ~]# locate-r Tg3.*ko/lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/tg3.koBecause the system kernel driver module ends with a. Ko3. View module Information[[emailprotected]~]#modinfo/lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/ Tg3.kofilename:/lib/modules/2.6.32-279.el6.x86_64
. The function code is in Linux/drivers/net/eepro100.c and the rtl8139_pci_driver is defined in our driver code, it is the link between the driver and the PCI device. Rtl8139_pci_driver is defined as follows:
Static struct pci_driver rtl8139_pci_driver = {Name: MODNAME,Id_table: rtl8139_pci_tbl,Probe: rtl8139_init_one,Remove: rtl8139_remove_one,};
Pci_module_init () is not defined in the driver code. You must have thought that it is a standard interfa
Article Title: RouterOS2.8 hardware driver list (1 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Device Driver List
Document revision:
2.8 (Wed Oct 13 11:39:39 GMT 2004)
Applies:
MikroTik RouterOS V2.8
General Information
Summary
The document lists the drivers, included in MikroTik RouterOS and the devices that are tested to
. The options are 250, 500, 750, and 1 000, in milliseconds. (14) security option: When system is selected, the system will prompt you to enter the password each time the server is started. When setup is selected, the system will prompt you to enter the password only when entering c mos setup. (15) PS/2 mouse function control: when this item is set to enable, the machine provides support for the PS/2 type mouse. Otherwise, select disable. (16) Assign pci
(1) Tools:
There is also a public git tree at git: // git.kernel.org/pub/scm/utils/pciutils/pciutils.git containing the current development code. You can also view the development log of the Development tree.
Git clone git: // git.kernel.org/pub/scm/utils/pciutils/pciutils.git to download the code to the pciutils directory.
(2) tool Compilation:
Root permission
Make
Make install
Generated in the/usr/local/sbin directory
Lspci setpci Update-pciids
Generated under/usr/local/share:
Aclocal ca-cert
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.