Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

device_move(9) [centos man page]

DEVICE_MOVE(9)						   Device drivers infrastructure					    DEVICE_MOVE(9)

NAME
device_move - moves a device to a new parent SYNOPSIS
int device_move(struct device * dev, struct device * new_parent, enum dpm_order dpm_order); ARGUMENTS
dev the pointer to the struct device to be moved new_parent the new parent of the device (can by NULL) dpm_order how to reorder the dpm_list COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 DEVICE_MOVE(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 2.6. July 2010 DEVICE_CREATE_VARGS(9)
Man Page

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl - backticks v system in if statements

Can someone explain the difference between backticks and system when evaluated in these if statements: sub getDate { print "start date\n"; if ( system("/bin/date") ) { print "can't get date\n"; exit(2); } print "finish date\n"; } Returns the following: start date Thu... (5 Replies)
Discussion started by: gjkeenan
5 Replies

2. Shell Programming and Scripting

perl rename failed

i have a file, which i want to rename, from my current directory to a backupdirectory. My perl code is below rename($s_filename,$backup.$s_filename ) all my variables are defined. but the rename failed. the file permission my file is "-rw-rw-r--". could this be a problem? I tried to use the... (9 Replies)
Discussion started by: new2ss
9 Replies

3. Shell Programming and Scripting

Need help updating my AIX shell script that uses IBM tape tool.

I have a shell script that interfaces with our tape library using IBM's Tape Diagnostic tool called "itdt". The script does some basic stuff, it queries the tape library, loads tape to/from drive; it knows which inventory slot to pick the tape from based on SLOT=$(($BASESLOT + $TODAY)). The... (10 Replies)
Discussion started by: c3rb3rus
10 Replies