, here, the usb_class_mass_storage macro is defined in include/Linux/USB/ch9.h, and its value is 8.
Let's take 1,477th rows as an example.
1477 usual_dev (us_ SC _rb, us_pr_cb, usb_us_type_stor ),
Expand this macro, that is, define such a usb_device_id struct variable, its match_flags = struct, and binterfaceclass = usb_class_mass_storage, binterfacesubclass = us_ SC _rb, and binterfaceprotocol = us_pr_cb.
Usb_class_mass_storage does not need to be
transmission, control transmission, and batch transmission. Which of the four types of transmission a device can support is the property of the device itself, which is determined during hardware design. For example, a pure USB flash drive must support batch transmission and control transmission. Different transmission requirements have different endpoints, so for a USB
USB flash drive, mobile hard drive boot boot install linux system "Centos 6.4"USB flash drive, mobile hard drive boot to install Linux system "Centos 6.4" (Rhel basically the same)The case is that I installed 32 system, 64-bit whe
Rome was not built in one day. Before making the USB flash drive work, we actually made a lot of preparations for the driver.
We continue to follow our feelings. storage_probe (), 972 to 975 rows, and a series of functions named init _ * are called at the moment. Here some lock mechanisms and wait mechanisms are involved, however, it is only initialization, but it is ignored for the time being. It will be
Someone asked how to make the downloaded Mac OS X operating system into an installation disk based on a USB flash drive or a removable hard disk and install an Apple Computer operating system with a USB drive or removable hard drive. OK, send a tutorial on using a mobile har
In January 29, 2013, 360 security guard posted a message on its official microblog about 360 emergency drive 1.0Beta, attracting thousands of forwards instantly.
According to reports, the 360 emergency drive is a portable operating system that can be created in less than MB of U disk space. When the system crashes and cannot be started, the 360 first-aid disk can help you rescue files, store important data,
transmission. Which of the four types of transmission a device can support is the property of the device itself, which is determined during hardware design. For example, a pure USB flash drive must support batch transmission and control transmission. Different transmission requirements have different endpoints, so for a USB flash
Rome was not built in one day. Before making the USB flash drive work, we actually made a lot of preparations for the driver. We continue to follow our feelings. storage_probe (), 972 to 975 rows, and a series of functions named init _ * are called at the moment. here some lock mechanisms and wait mechanisms are involved, but...
Rome was not built in one day. Before making the
unsigned int delay_use = 5;
111 module_param (delay_use, uint, s_irugo | s_iwusr );
112 module_parm_desc (delay_use, "seconds todelay before using a new device ");
Set delay_use to 5, while module_param is a macro provided by Linux kernel 2.6, so that delay_use can be set when the module is loaded. (If this parameter is not set, the value 5 indicates that a new device is waiting for a delay of 5 seconds .) Why latency? When the inserted USB flash
-storage: devicescan complete \ n ");
936
937/* shocould we unbind if no devices weredetected? */
938}
939
940 scsi_host_put (us_to_host (us ));
941 complete_and_exit ( threads_gone, 0 );
942}
Row 3, where does delay_use come from? In the same file, a static variable is defined at the beginning:
110 static unsigned int delay_use = 5;
111 module_param (delay_use, uint, S_IRUGO | S_IWUSR );
112 MODULE_PARM_DESC (delay_use, "seconds todelay before using a new device ");
Set delay_use to
One day, I used a USB flash drive on the company's computer and copied the photos to the hard disk. As I was in a hurry to go out, I just pulled out the USB flash drive when I shut down the computer. This operation should be no different from pulling out the USB flash
-2.6.22/drivers # cd usb/
Lfg1:/usr/src/linux-2.6.22/drivers/usb # ls
Kconfig Makefile README atm class core gadget host image misc mon
Serial storage usb-skeleton.c
Note that each directory contains a Kconfig file and Makefile, which is very important. We will introduce it later.
Our story is based on the drivers/usb
Rome was not built in one day. Before making the USB flash drive work, we actually made a lot of preparations for the driver.
We continue to follow our feelings. storage_probe (), 972 to 975 rows, and a series of functions named init _ * are called at the moment. Here some lock mechanisms and wait mechanisms are involved, however, it is only initialization, but it is ignored for the time being. It will be e
USB flash drive, mobile hard drive boot boot install linux system "Centos 6.4"USB flash drive, mobile hard drive boot to install Linux system "Centos 6.4" (Rhel basically the same)The case is that I installed 32 system, 64-bit whe
I. Solutions for using USB flash drives on Vmware Server2.0:
1. Add USB controller :(Note: All of the following operations must be performed on the server.)
A. Select the virtual machine to add the hardware, click the summary tab, and click "add Hardware" in commands on the right panel ". For example:
B. In the "add hardware wizard" dialog box that appears, click "Hardware type" and select "
Create a USB flash drive and a UEFI boot drive for Chinese Cabbage
Make a USB flash drive for UEFI.
Download and install the brand new cabbage UEFI Version 7.3 from the official Chinese cabbage website.
Insert the USB fl
The previous use of U disk System are used UltraISO direct production of the startup disk, and sometimes a couple of days have to dress up the system, today is windows, tomorrow is Ubuntu, the day after that may be other Linux distribution, very inconvenient, So just want to use a U disk to do a multi-system startup disk, after n days of continuous practice, and constantly try to finally let me succeed.Pre-production preparation :1) 1 USB flash
USB stick inserted after the Mac in order to make the USB flash drive safe eject, how to do? The first user of the Mac system friends may encounter such questions, in order to protect the USB flash drive or mobile hard disk inside the data security, easy to safely eject U di
We followed storage_probe () almost completely, and it seems that everything is about to end, but do you think you haven't understood how the device works so far? USB flash disks, not just USB devices or disks, must comply with the USB massstorage protocol and...
We followed storage_probe () almost completely, and it seems that everything is about to end, but do
Some people say that the optical drive will not be used in the future. The Blu-ray HD format has just been defeated by the hddvd format, and it is too late to celebrate the victory. The fate of the optical drive will soon be eliminated. With the increase in network bandwidth and the popularization of Mobile 3G/4G, as the capacity of hard disks and USB flash disks
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.