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
-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
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
First, of course we can use umount to uninstall it.You can use the mount command again to reload;
However, if "pop-up"/"eject" is selected, it cannot be reloaded. This is generally applicable to optical drives;
"Safely remove the driver"/"safely remove device", stop rotating the USB flash drive/mobile hard drive
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,
USB flash drives, a mobile storage device, provide great convenience for people to store data due to its advantages such as small size, large capacity, and easy to carry. But thanks to this convenience, the virus also has a chance to take advantage of it. Have you ever taken a USB flash
For the entire USB-storage module, the usb_stor_init () function is its start. However, for the USB flash drive, the function that actually drives the USB flash drive starts with the st
Mount the USB flash drive another day and mount the dvd and mobile hard drive. 1. before inserting the USB flash drive, # cat/proc/tartitions2, insert the
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
-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
Linux www.2cto.com installed on a virtual machine. If you want Linux to identify a USB flash drive, you need to move the cursor to the virtual machine's linux and then insert it into the USB flash drive,
USB flash drive cracking XP Administrator Password
Method 1
In fact, cracking windows passwords is also very simple. To do this, you must first sharpen the tool. To crack the XP login password, we need to use the "ERD Commander 2003" (ERD) software, which is generally built into the winpe and other system recovery discs. However, the disk is too large to carry
: Intel
Product identification: Flash Disk
Product revision level: 2.00
Here I am using a USB flash drive produced by Intel. The sg_inq command can be used to query the basic information about this USB flash
Teach you how to use a USB flash drive to install the system ● Preparations before installing the system
A USB flash drive that can boot your computer and a system CD image
Prepare something before installing the system. One is
, 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
The USB flash drive folder name is changed to the following situation: Why? Objects or @ are different and cannot be deleted. When deleting a file, the system prompts that the file cannot be deleted and the source file or disk cannot be read. Note that most of the garbled files are very large, even dozens of GB.
The cause of this problem is usually caused by abno
: Intel
Product Identification: Flash Disk
Product revision level: 2.00
Here I am using a USB flash drive produced by Intel. The sg_inq command can be used to query the basic information about this USB flash
How can I install a USB flash drive (mobile hard drive) on kickstart ?? -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. How can I install a USB flash
The following describes the usb_stor_control_thread () function. The wake-up command is the up ( amp; (us- gt; sema) from queuecommand, and the us- gt; sulfate is assigned to the server load balancer, in contrast, the server load balancer is a parameter passed in when the SCSI core layer calls the queuecommand. Focus on usb_stor_control_thread ()
The following describes the usb_stor_control_thread () function. What wakes up is the up ( (us-> sema) from the queuecommand, and us-> sulfate is assi
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.