8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
Can someone take a look at my scripts what missing, plugin usb drive the script is running can log all my echo but cannot execute command. Is there any configuration in linux or to my scripts need to add?.
What i want to achieve is every time I plugin the usbdisk automatic mount to... (21 Replies)
Discussion started by: lxdorney
21 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
I found this site here: AndDiSa Android Blog: Nexus 7 MTP automount on OpenSuse 11.4
That sites explains how to mount an Android device that can only connect to a computer using MTP or PTP instead of what it used
to get treated as, which was a Mass Storage Device.
In my Rules... (0 Replies)
Discussion started by: mrm5102
0 Replies
3. Shell Programming and Scripting
Hi All,
I need a simple udev rules in my server Centos 5.4. This rules needs to get trigger my script whenever the cdrom is attached to the server.
Could you please provide your suggestion on it.
Thanks,
Kalai (0 Replies)
Discussion started by: kalpeer
0 Replies
4. Red Hat
On a test server running CentOS 6, I try to permanently set the owner, group and mode of disk devices for use with a DB2 database. For this I created an udev rule file /etc/udev/rules.d/99-db2.rules:
KERNEL=="sdb*", OWNER="db2usrl1", GROUP="db2adml1", MODE="0600"
After a reboot, the owner and... (4 Replies)
Discussion started by: hergp
4 Replies
5. Linux
Hi everybody!
I installed Fedora 14 from dvd iso file (3.3 GB). But after that, when i enter command init 3 or init 5 an error occurs: "retrigger failed udev events". Who has experienced pls give me some suggestions. Tks so much!
Ok now I can use graphic mode. The first time, I use 256MB for... (0 Replies)
Discussion started by: nguyendu0102
0 Replies
6. UNIX for Advanced & Expert Users
I have been trying to get USB storage devices to auto-mount themselves under "/media/usb/<dev>" but have been running into some problems with udev (on FC7, btw... running udevd v.106)
Every time I put in a FAT (not 32) USB stick, udev identifies it as "USB storage", identifies the partition and... (3 Replies)
Discussion started by: jjinno
3 Replies
7. Shell Programming and Scripting
Hello!
I'm sorry if this is the false Forum, didn't really knew where to put it...
My question:
I have serveral USB-Sticks and wrote several Udev-Rules for theme, each Sticks needs to do something else, but all are using the same script (they have common tasks to do) and only some parts are... (2 Replies)
Discussion started by: al0x
2 Replies
8. UNIX for Dummies Questions & Answers
Can anybody tell What is the exact difference between a Dual-core processor and a Core-to-duo processor ?Advance thanks to all my friends. (1 Reply)
Discussion started by: Ajith kumar.G
1 Replies
STRUCT
USB_DEVICE_DR(9) Host-Side Data Types and Macro STRUCT USB_DEVICE_DR(9)
NAME
struct_usb_device_driver - identifies USB device driver to usbcore
SYNOPSIS
struct usb_device_driver {
const char * name;
int (* probe) (struct usb_device *udev);
void (* disconnect) (struct usb_device *udev);
int (* suspend) (struct usb_device *udev, pm_message_t message);
int (* resume) (struct usb_device *udev, pm_message_t message);
struct usbdrv_wrap drvwrap;
unsigned int supports_autosuspend:1;
};
MEMBERS
name
The driver name should be unique among USB drivers, and should normally be the same as the module name.
probe
Called to see if the driver is willing to manage a particular device. If it is, probe returns zero and uses dev_set_drvdata to
associate driver-specific data with the device. If unwilling to manage the device, return a negative errno value.
disconnect
Called when the device is no longer accessible, usually because it has been (or is being) disconnected or the driver's module is being
unloaded.
suspend
Called when the device is going to be suspended by the system.
resume
Called when the device is being resumed by the system.
drvwrap
Driver-model core structure wrapper.
supports_autosuspend
if set to 0, the USB core will not allow autosuspend for devices bound to this driver.
DESCRIPTION
USB drivers must provide all the fields listed above except drvwrap.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRUCT USB_DEVICE_DR(9)