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)
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)
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)
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)