*参照元 [#p3d6d20c] #backlinks *説明 [#y2aa5dfd] -パス: [[linux-2.6.33/drivers/base/dd.c]] -FIXME: これは何? --説明 **引数 [#hf0ed081] -struct device *dev -- --[[linux-2.6.33/device]] **返り値 [#dc84cc4f] -int -- **参考 [#c69f04b5] *実装 [#f5d0a7a4] /** * device_bind_driver - bind a driver to one device. * @dev: device. * * Allow manual attachment of a driver to a device. * Caller must have already set @dev->driver. * * Note that this does not modify the bus reference count * nor take the bus's rwsem. Please verify those are accounted * for before calling this. (It is ok to call with no other effort * from a driver's probe() method.) * * This function must be called with @dev->sem held. */ int device_bind_driver(struct device *dev) { int ret; ret = driver_sysfs_add(dev); if (!ret) driver_bound(dev); - --[[linux-2.6.33/driver_sysfs_add()]] - --[[linux-2.6.33/driver_bound()]] return ret; } EXPORT_SYMBOL_GPL(device_bind_driver); - --[[linux-2.6.33/EXPORT_SYMBOL_GPL()]] *コメント [#r74c3a37]