linux-2.6.33/cdev_add()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#l3717204]
#backlinks
*説明 [#bb2d91ca]
-パス: [[linux-2.6.33/fs/char_dev.c]]
-FIXME: これは何?
--説明
**引数 [#m447266b]
-struct cdev *p
--
--[[linux-2.6.33/cdev]]
-dev_t dev
--
--[[linux-2.6.33/dev_t]]
-unsigned count
--
**返り値 [#m1a84373]
-int
--
**参考 [#b7d79852]
*実装 [#q50483f1]
/**
* cdev_add() - add a char device to the system
* @p: the cdev structure for the device
* @dev: the first device number for which this device i...
* @count: the number of consecutive minor numbers corre...
* device
*
* cdev_add() adds the device represented by @p to the s...
* live immediately. A negative error code is returned ...
*/
int cdev_add(struct cdev *p, dev_t dev, unsigned count)
{
p->dev = dev;
p->count = count;
return kobj_map(cdev_map, dev, count, NULL, exact_match...
-
--[[linux-2.6.33/kobj_map()]]
--[[linux-2.6.33/cdev_map(global)]]
--[[linux-2.6.33/exact_match()]]
--[[linux-2.6.33/exact_lock()]]
}
*コメント [#u91f5783]
終了行:
*参照元 [#l3717204]
#backlinks
*説明 [#bb2d91ca]
-パス: [[linux-2.6.33/fs/char_dev.c]]
-FIXME: これは何?
--説明
**引数 [#m447266b]
-struct cdev *p
--
--[[linux-2.6.33/cdev]]
-dev_t dev
--
--[[linux-2.6.33/dev_t]]
-unsigned count
--
**返り値 [#m1a84373]
-int
--
**参考 [#b7d79852]
*実装 [#q50483f1]
/**
* cdev_add() - add a char device to the system
* @p: the cdev structure for the device
* @dev: the first device number for which this device i...
* @count: the number of consecutive minor numbers corre...
* device
*
* cdev_add() adds the device represented by @p to the s...
* live immediately. A negative error code is returned ...
*/
int cdev_add(struct cdev *p, dev_t dev, unsigned count)
{
p->dev = dev;
p->count = count;
return kobj_map(cdev_map, dev, count, NULL, exact_match...
-
--[[linux-2.6.33/kobj_map()]]
--[[linux-2.6.33/cdev_map(global)]]
--[[linux-2.6.33/exact_match()]]
--[[linux-2.6.33/exact_lock()]]
}
*コメント [#u91f5783]
ページ名: