Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

device_del(9) [centos man page]

DEVICE_DEL(9)						   Device drivers infrastructure					     DEVICE_DEL(9)

NAME
device_del - delete device from system. SYNOPSIS
void device_del(struct device * dev); ARGUMENTS
dev device. DESCRIPTION
This is the first part of the device unregistration sequence. This removes the device from the lists we control from here, has it removed from the other driver model subsystems it was added to in device_add, and removes it from the kobject hierarchy. NOTE
this should be called manually _iff_ device_add was also called manually. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 DEVICE_DEL(9)

Check Out this Related Man Page

DEVICE_CREATE_VARGS(9)					   Device drivers infrastructure				    DEVICE_CREATE_VARGS(9)

NAME
device_create_vargs - creates a device and registers it with sysfs SYNOPSIS
struct device * device_create_vargs(struct class * class, struct device * parent, dev_t devt, void * drvdata, const char * fmt, va_list args); ARGUMENTS
class pointer to the struct class that this device should be registered to parent pointer to the parent struct device of this new device, if any devt the dev_t for the char device to be added drvdata the data to be added to the device for callbacks fmt string for the device's name args va_list for the device's name DESCRIPTION
This function can be used by char device classes. A struct device will be created in sysfs, registered to the specified class. A "dev" file will be created, showing the dev_t for the device, if the dev_t is not 0,0. If a pointer to a parent struct device is passed in, the newly created struct device will be a child of that device in sysfs. The pointer to the struct device will be returned from the call. Any further sysfs files that might be required can be created using this pointer. Returns struct device pointer on success, or ERR_PTR on error. NOTE
the struct class passed to this function must have previously been created with a call to class_create. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 DEVICE_CREATE_VARGS(9)
Man Page

5 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Flash disk problem

Hi, I have USB flash drive. I have formated this one on windows ( fdisk /dev/sdb showed me that this is WIN95 FAT32 ) ok When I tried to copy some data from /media/cdrecord I get IO error. and dvice automaticly unmount. And kernel Oops is called: CPU: 0 EIP: 0060: Not tainted... (4 Replies)
Discussion started by: marcintom
4 Replies

2. Red Hat

How to Cleanup Multipathing

I have a server running redhat 5.5 and it has one SAN device presented to it as LUN9. How can I clean up the remaining entries. I cannot afford to interupt the service. Please assist. # multipath -l mpath0 (36000097000019260298953666633436) dm-11 EMC,SYMMETRIX \_ round-robin 0 \_ 2:0:0:9 ... (2 Replies)
Discussion started by: Tirmazi
2 Replies

3. Red Hat

Meaning of SDA

Hey everyone. Right now I am working through Red Hat's online storage reconfiguration guide for a project that we're working on. For removing storage paths to a volume using multipaths, it says that the first step is to type: echo offline> /sys/block/sda/device/state Does it actually mean SDA?... (2 Replies)
Discussion started by: msarro
2 Replies

4. UNIX for Advanced & Expert Users

keyboard remapped drastically by X

I have Fedora 16 + LXDE + old NVIDIA Quadro FX 570. I updated a bunch of packages last night (see list at the bottom), installed new kernel also (3.4.4), then updated the proprietary NVIDIA driver, and after booting back into X, the keyboard is remapped wildly. Pretty much all the keys are... (1 Reply)
Discussion started by: mirni
1 Replies

5. Red Hat

Make a disk disappear from fdisk output

Hello, 1 ) Fdisk -l # Displays all the disk with partition table information My Query ) A ) How can i make one disk ex: /dev/sdd not visible in fdisk -l output ? B) From where fdisk -l collect and display the information ? (8 Replies)
Discussion started by: saurabh84g
8 Replies