最終更新:2015-11-18 (水) 17:34:36 (3053d)
input_allocate_device
Top / input_allocate_device
allocate memory for new input device
Returns prepared struct input_dev or %NULL.
定義
struct input_dev *input_allocate_device(void)
実装
呼び出し元
- hidinput_allocate? (drivers/hid/hid-input.c)
- hidp_setup_input? (net/bluetooth/hidp/core.c?)
- とか
呼び出し
- kzalloc - input_devのメモリを確保
- device input_dev.dev
- input_dev.dev.type? = input_dev_type
- input_dev.dev.class? = input_class?
- device_initialize(input_dev.dev)
- dev_set_name(&dev->dev, "input%lu",(unsigned long)atomic_inc_return?(&input_no?));
- device input_dev.dev