Lines Matching refs:device

77 	\param device Pointer to a pre-allocated BDiskDevice to be initialized to
78 represent the next device.
86 BDiskDeviceRoster::GetNextDevice(BDiskDevice* device)
88 if (!device)
97 return device->_SetTo(id, true, neededSize);
101 /*! \brief Rewinds the device list iterator.
172 BDiskDeviceRoster::UnregisterFileDevice(partition_id device)
174 if (device < 0)
176 return _kern_unregister_file_device(device, NULL);
182 The supplied visitor's Visit(BDiskDevice*) is invoked for each device.
184 returns \c true. If supplied, \a device is set to the concerned device.
187 \param device Pointer to a pre-allocated BDiskDevice to be initialized
188 to the device at which the iteration was terminated.
194 BDiskDevice* device)
201 BDiskDevice* useDevice = device ? device : &deviceOnStack;
216 disk device and Visit(BPartition*) for each (non-disk device) partition.
218 returns \c true. If supplied, \a device is set to the concerned device
222 \param device Pointer to a pre-allocated BDiskDevice to be initialized
223 to the device at which the iteration was terminated.
232 BDiskDevice* device, BPartition** partition)
239 BDiskDevice* useDevice = device ? device : &deviceOnStack;
251 else if (device && partition)
263 returns \c true. If supplied, \a device is set to the concerned device
267 \param device Pointer to a pre-allocated BDiskDevice to be initialized
268 to the device at which the iteration was terminated.
277 BDiskDevice* device, BPartition** partition)
287 = VisitEachPartition(&filterVisitor, device, partition);
298 returns \c true. If supplied, \a device is set to the concerned device
302 \param device Pointer to a pre-allocated BDiskDevice to be initialized
303 to the device at which the iteration was terminated.
312 BDiskDevice* device, BPartition** partition)
322 = VisitEachPartition(&filterVisitor, device, partition);
332 BDiskDevice* device, BPartition** _partition)
342 virtual bool Visit(BDiskDevice* device)
344 return Visit(device, 0);
358 if (VisitEachMountedPartition(&visitor, device, _partition))
369 BDiskDevice* device, BPartition** _partition)
373 && FindPartitionByVolume(volume, device, _partition))
382 The supplied \a device is initialized to the device identified by \a id.
384 \param id The ID of the device to be retrieved.
385 \param device Pointer to a pre-allocated BDiskDevice to be initialized
386 to the device identified by \a id.
389 - \c B_ENTRY_NOT_FOUND: A device with ID \a id could not be found.
393 BDiskDeviceRoster::GetDeviceWithID(int32 id, BDiskDevice* device) const
395 if (!device)
397 return device->_SetTo(id, true, 0);
403 The supplied \a device is initialized to the device the partition
408 \param device Pointer to a pre-allocated BDiskDevice to be initialized
409 to the device the partition identified by \a id resides on.
418 BDiskDeviceRoster::GetPartitionWithID(int32 id, BDiskDevice* device,
421 if (!device || !partition)
424 // retrieve the device data
425 status_t error = device->_SetTo(id, false, 0);
430 *partition = device->FindDescendant(id);
439 BDiskDeviceRoster::GetDeviceForPath(const char* filename, BDiskDevice* device)
441 if (!filename || !device)
444 // get the device ID
450 // retrieve the device data
451 return device->_SetTo(id, true, neededSize);
457 BDiskDevice* device, BPartition** partition)
459 if (!filename || !device || !partition)
468 // retrieve the device data
469 status_t error = device->_SetTo(id, false, neededSize);
474 *partition = device->FindDescendant(id);
483 BDiskDevice* device)
485 if (!filename || !device)
488 // get the device ID
494 // retrieve the device data
495 return device->_SetTo(id, true, neededSize);
499 /*! \brief Adds a target to the list of targets to be notified on disk device
529 device events.
696 /*! \brief Returns a BDiskDevice for a given device, session or partition ID.
698 The supplied \a device is initialized to the device the object identified
702 the type of object the device shall be retrieved for.
703 \param id The ID of the device, session or partition to be retrieved.
704 \param device Pointer to a pre-allocated BDiskDevice to be initialized
705 to the device to be retrieved.
708 - \c B_ENTRY_NOT_FOUND: A device, session or partition respectively with
714 BDiskDevice *device) const
716 status_t error = (device ? B_OK : B_BAD_VALUE);
732 // device
735 error = reply.FindMessage("device", &archive);
737 error = device->_Unarchive(&archive);