*参照元 [#l3717204]
#backlinks

*説明 [#bb2d91ca]
-パス: [[linux-2.6.33/]]
-パス: [[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 is responsible
  * @count: the number of consecutive minor numbers corresponding to this
  *         device
  *
  * cdev_add() adds the device represented by @p to the system, making it
  * live immediately.  A negative error code is returned on failure.
  */
 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, exact_lock, p);
-
--[[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]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS