[pso] [tema3 windows]test
Florin Antonescu
florinantonescu at yahoo.com
Mon Jun 9 18:27:08 EEST 2008
FILE_DEVICE_DISK implica folosirea DIRECT IO deci bufferul il vei primi in irp->MdlAddress si il accesezi cu MmGetSystemAddressForMdlSafe(irp->MdlAddress, NormalPagePriority)
Alexandru Florian Antonescu 344C2
----- Original Message ----
From: Mihai Borobocea <mihaiborobocea at gmail.com>
To: Proiectarea Sistemelor de Operare <pso at cursuri.cs.pub.ro>
Sent: Monday, June 9, 2008 6:08:07 PM
Subject: Re: [pso] [tema3 windows]test
La tema3 pe Windows, daca folosesc FILE_DEVICE_DISK in loc de
FILE_DEVICE_UNKNOWN, atunci la operatiile de read si write primesc
buffer-ul NULL.
Buffer-ul il obtin asa (la fel ca la tema cu portul serial):
pIrpStack = IoGetCurrentIrpStackLocation(irp);
destBuf = irp->AssociatedIrp.SystemBuffer;
S-a mai confruntat cineva cu problema asta?
Mersi,
Mihai
2008/5/17 Cristian Gratie <cgratie at yahoo.com>:
> Dupa multe ore in care m-am confruntat cu aceeasi problema, am gasit solutia: in IoCreateDevice trebuie specificat tipul FILE_DEVICE_DISK, in loc de FILE_DEVICE_UNKNOWN.
>
> Explicatia ar fi (presupun) ca daca nu se stie despre ce tip de dispozitiv e vorba, nu se va actualiza file pointer-ul asociat.
_______________________________________________
pso mailing list
pso at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080609/8f399a88/attachment.html
More information about the pso
mailing list