Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dev_open(9) [centos man page]

DEV_OPEN(9)						      Network device support						       DEV_OPEN(9)

NAME
dev_open - prepare an interface for use. SYNOPSIS
int dev_open(struct net_device * dev); ARGUMENTS
dev device to open DESCRIPTION
Takes a device from down to up state. The device's private open function is invoked and then the multicast lists are loaded. Finally the device is moved into the up state and a NETDEV_UP message is sent to the netdev notifier chain. Calling this function on an active interface is a nop. On a failure a negative errno code is returned. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 DEV_OPEN(9)

Check Out this Related Man Page

STRUCT 
INPUT_POLLED_(9) Input Subsystem STRUCT INPUT_POLLED_(9) NAME
struct_input_polled_dev - simple polled input device SYNOPSIS
struct input_polled_dev { void * private; void (* open) (struct input_polled_dev *dev); void (* close) (struct input_polled_dev *dev); void (* poll) (struct input_polled_dev *dev); unsigned int poll_interval; unsigned int poll_interval_max; unsigned int poll_interval_min; struct input_dev * input; }; MEMBERS
private private driver data. open driver-supplied method that prepares device for polling (enabled the device and maybe flushes device state). close driver-supplied method that is called when device is no longer being polled. Used to put device into low power mode. poll driver-supplied method that polls the device and posts input events (mandatory). poll_interval specifies how often the poll method should be called. Defaults to 500 msec unless overridden when registering the device. poll_interval_max specifies upper bound for the poll interval. Defaults to the initial value of poll_interval. poll_interval_min specifies lower bound for the poll interval. Defaults to 0. input input device structure associated with the polled device. Must be properly initialized by the driver (id, name, phys, bits). DESCRIPTION
Polled input device provides a skeleton for supporting simple input devices that do not raise interrupts but have to be periodically scanned or polled to detect changes in their state. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 STRUCT INPUT_POLLED_(9)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

What is unbalanced IRQ?

------------------------ WARNING: at kernel/irq/manage.c:225 __enable_irq+0x3b/0x57() Unbalanced enable for IRQ 4 Modules linked in: svsknfdrvr Pid: 634, comm: ash Tainted: G W 2.6.28 #1 Call Trace: warn_slowpath+0x76/0x8d profile_tick+0x2d/0x57 irq_exit+0x32/0x34 ... (3 Replies)
Discussion started by: dragonpoint
3 Replies

2. Shell Programming and Scripting

"Cannot allocate memory" error when run from script

hi in my application there is a line with open(/dev/mydevice,0); it work good when it run manually, but when try to run it within script /////////////////////////////////////////// #!/bin/sh ./device_test 0 0 0 1 1 1 0 0 1 ///////////////////////////////////////// I receive 'Failed... (3 Replies)
Discussion started by: majeed
3 Replies

3. SuSE

Problem migrating disk attached to the same vg (lvm)

Hi, I'm trying to migrate the content of disk 'A' to disk 'B', that they belong to the same vg 'data'_vg'. Whe using pvmove, I get the following error: 'device-mapper: suspend ioctl failed: Interrupted system call'. I put down the whole trace: pvmove -v "source_disk" "sink_disk" ... (0 Replies)
Discussion started by: Begnux
0 Replies

4. Solaris

Sun Fire V245 patching issue

Hi All, I have an server Sun Fire V245 for which we had been trying to patch. We get a message that the patch has been applied successfully but while trying to reboot after activating the new lu, the server is not booting up. Had reinstalled lustarter pack, required patches during the patching... (5 Replies)
Discussion started by: Rockyc3400
5 Replies