home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4374 < prev    next >
Encoding:
Text File  |  1992-08-21  |  2.1 KB  |  40 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!cs.utexas.edu!natinst.com!ramdas
  3. From: ramdas@natinst.com (Malathi Ramdas)
  4. Subject: OS/2 2.0 device drivers
  5. Message-ID: <1992Aug21.194048.11925@natinst.com>
  6. Sender: news@natinst.com
  7. Nntp-Posting-Host: eagle.natinst.com
  8. Organization: National Instruments, Austin, TX
  9. Date: Fri, 21 Aug 1992 19:40:48 GMT
  10. Lines: 28
  11.  
  12.  
  13.    Thanks for your reply. You misunderstood my question about the address
  14. format. What I wanted to know was during an I/O transfer if the device driver
  15. provides an IOCtl interface to the application (instead of requiring the application t[C
  16. cation to do a DosRead or DosWrite) would the data address was passed in by the
  17. application 
  18. to the driver (I know that it goes through the kernel and gets formatted to a 
  19. request packet form) be in a 16:16 or 0:32 bit form. Since the kernel does
  20. not do the locking and the virtual to physical address conversion in the 
  21. case of a IOCtl call, I am concerned if for 16-bit applications the data
  22. address (virtual address) that gets passed to the driver would be in a 16:16
  23. form. I want to be able to do data transfer above 64K at a time.
  24.    When you say that you have been compiling your OS/2 2.0 drivers using 
  25. MSC 6.0 and CSET/2 have you been generating 32-bit driver code. (I thought
  26. MSC 6.0 is a 16-bit compiler) If I generate a 32-bit assembler code (for the
  27. entry points) using MASM 6.0 will the code be able to recognize the 16:16 bit
  28. format of the request packet address.
  29.  Also, would anyone happen o know how expensive the DevHlp call VML'VMLock' is ?
  30. When you set the flag to return immediately if enough physical memory is not
  31. available does the page manager (or whatever is in charge of allocating physical
  32. memor) try its levels best to allot pages for you or does it immediately return
  33. after a search for free memory?  Does setting the falg to block till memory 
  34. becomes available cause some active swapping to be initiated?
  35.   I am a little confused by this 16-bit 32-bit hybrid OS/2 model. I would really
  36. appreciate it if you could explain to me the real implications of the OS/2
  37. device driver architecture being 16-bit from a device driver writer's point
  38. of view.
  39.  
  40.