[pso] work_struct::data
Alexandru Mosoi
brtzsnr at gmail.com
Wed May 14 23:51:41 EEST 2008
incerc sa folosesc membrul data pentru a transmite pointerul la structura
bio astfel:
work_handler:
struct bio* bio =
(struct bio *)atomic_long_read(&work->data);
printk(KERN_ALERT "handler bio = %p\n", bio);
bio_request
printk(KERN_ALERT "request bio = %p\n", bio);
atomic_long_set(&device->work.data, (long)bio);
PREPARE_WORK(&device->work, ssr_work_handler);
schedule_work(&device->work);
nu stiu ce gresesc, dar cei doi pointeri sunt distincti.
--
Alexandru Moşoi
http://alexandru.mosoi.googlepages.com
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080514/d7ab1ab6/attachment.htm
More information about the pso
mailing list