MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_floppy_write

Function rt_floppy_write

bsp/x86/drivers/floppy.c:304–310  ·  view source on GitHub ↗

position: block page address, not bytes address * buffer: * size : how many blocks */

Source from the content-addressed store, hash-verified

302 * size : how many blocks
303 */
304static rt_ssize_t rt_floppy_write(rt_device_t device, rt_off_t position, const void *buffer, rt_size_t size)
305{
306 rt_mutex_take(&lock, RT_WAITING_FOREVER);
307 panic("FIXME:I don't know how!\n");
308 rt_mutex_release(&lock);
309 return size;
310}
311
312static rt_err_t rt_floppy_control(rt_device_t dev, int cmd, void *args)
313{

Callers

nothing calls this directly

Calls 3

rt_mutex_takeFunction · 0.85
panicFunction · 0.85
rt_mutex_releaseFunction · 0.85

Tested by

no test coverage detected