Jump to content

List of DevHlp Functions: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
DevHlp function names with request code
00 DevHelp_SchedClock
 
01 [[DevHelp_DevDone]]
{|class="wikitable"
02 DevHelp_Yield
!Function Name||Code||Description
03 DevHelp_TCYield
|-
04 DevHelp_ProcBlock
|DevHlp_SchedClock||0x0||Called each timer tick
05 DevHelp_ProcRun
|-
06 DevHelp_SemRequest
|DevHlp_DevDone||0x1||Device I/O complete
07 DevHelp_SemClear
|-
08 DevHelp_SemHandle
|DevHlp_Yield||0x2||Yield CPU if resched set
09 DevHelp_PushRequest
|-
0A DevHelp_PullRequest
|DevHlp_TCYield||0x3||Yield to time critical task
0B DevHelp_PullParticular
|-
0C DevHelp_SortRequest
|DevHlp_ProcBlock||0x4||Block on event
0D [[DevHelp_AllocReqPacket]]
|-
0E DevHelp_FreeReqPacket
|DevHlp_ProcRun||0x5||Unblock process
0F DevHelp_QueueInit
|-
10 DevHelp_QueueFlush
|DevHlp_SemRequest||0x6||Claim a semaphore
11 DevHelp_QueueWrite
|-
12 DevHelp_QueueRead
|DevHlp_SemClear||0x7||Release a semaphore
13 DevHelp_Lock
|-
14 DevHelp_UnLock
|DevHlp_SemHandle||0x8||Obtain a semaphore handle
15 DevHelp_PhysToVirt
|-
16 DevHelp_VirtToPhys
|DevHlp_PushRequest||0x9||Push the request
17 DevHelp_PhysToUVirt
|-
18 [[DevHelp_AllocPhys]]
|DevHlp_PullRequest||0xA||Pull next request from Q
19 DevHelp_FreePhys
|-
1A DevHelp_SetROMVector
|DevHlp_PullParticular||0xB||Pull a specific request
1B DevHelp_SetIRQ
|-
1C DevHelp_UnSetIRQ
|DevHlp_SortRequest||0xC||Push request in sorted order
1D DevHelp_SetTimer
|-
1E DevHelp_ResetTimer
|DevHlp_AllocReqPacket||0xD||Allocate request packet
1F DevHelp_MonitorCreate
|-
20 DevHelp_Register
|DevHlp_FreeReqPacket||0xE||free request packet
21 [[DevHelp_DeRegister]]
|-
22 DevHelp_MonWrite
|DevHlp_QueueInit||0xF||Init/Clear char queue
23 DevHelp_MonFlush
|-
24 [[DevHelp_GetDOSVar]] **
|DevHlp_QueueFlush||0x10||flush queue
25 DevHelp_SendEvent
|-
26 DevHelp_ROMCritSection PDD: No longer used in OS/2 2.x.
|DevHlp_QueueWrite||0x11||Put a char in the queue
27 DevHelp_VerifyAccess
|-
28 [[DevHlp_SysTrace]] ** (DevHelp_RAS)
|DevHlp_QueueRead||0x12||Get a char from the queue
29 DevHelp_ABIOSGetParms *
|-
2A [[DevHelp_AttachDD]]
|DevHlp_Lock||0x13||Lock segment
2B DevHelp_InternalError
|-
2C DevHlp_ModifyPriority XX Undocumented (used by PM)
|DevHlp_Unlock||0x14||Unlock segment
2D [[DevHelp_AllocGDTSelector]]
|-
2E DevHelp_PhysToGDTSelector
|DevHlp_PhysToVirt||0x15||Convert physical address to virtual
2F DevHelp_RealToProt PDD: No longer used in OS/2 2.x.
|-
30 DevHelp_ProtToReal PDD: No longer used in OS/2 2.x.
|DevHlp_VirtToPhys||0x16||Convert virtual address to physical
31 [[DevHelp_EOI]]
|-
32 DevHelp_UnPhysToVirt
|DevHlp_PhysToUVirt||0x17||Convert physical to LDT
33 DevHelp_TickCount
|-
34 DevHelp_GetLIDEntry
|DevHlp_AllocPhys||0x18||Allocate physical memory
35 DevHelp_FreeLIDEntry
|-
36 [[DevHelp_ABIOSCall]]
|DevHlp_FreePhys||0x19||Free physical memory
37 [[DevHelp_ABIOSCommonEntry]]
|-
38 DevHelp_GetDeviceBlock
|DevHlp_SetROMVector||0x1A||Set a ROM service routine vector
3A DevHelp_RegisterStackUsage
|-
3B DevHelp_LogEntry * Place data in log buffer
|DevHlp_SetIRQ||0x1B||Set an IRQ interrupt
3C DevHelp_VideoPause
|-
3D DevHelp_Save_Message
|DevHlp_UnSetIRQ||0x1C||Unset an IRQ interrupt
3E DevHlp_SegRealloc * Realloc DD protect mode segment
|-
3F DevHlp_PutWaitingQueue * Put I/O request on waiting queue
|DevHlp_SetTimer||0x1D||Set timer request handler
40 DevHlp_GetWaitingQueue * Get I/O request from waiting queue
|-
41 DevHlp_PhysToSys * Address conversion for the AOX
|DevHlp_ResetTimer||0x1E||Unset timer request handler
42 DevHlp_PhysToSysHook * Address conversion for the AOX
|-
43 DevHelp_RegisterDeviceClass
|DevHlp_MonitorCreate||0x1F||Create a monitor
45 DevHlp_PerfSysTrace **
|-
50 DevHelp_RegisterPDD
|DevHlp_Register||0x20||Install a monitor
51 DevHelp_RegisterBeep
|-
52 [[DevHelp_Beep]]
|DevHlp_DeRegister||0x21||Remove a monitor
53 DevHelp_FreeGDTSelector
|-
54 DevHelp_PhysToGDTSel
|DevHlp_MonWrite||0x22||pass data records to monitor
55 DevHelp_VMLock
|-
56 DevHelp_VMUnLock
|DevHlp_MonFlush||0x23||remove all data from stream
57 DevHelp_VMAlloc 57
|-
58 DevHelp_VMFree
|DevHlp_GetDOSVar||0x24||Return pointer to DOS variable
59 DevHelp_VMProcessToGlobal
|-
5A DevHelp_VMGlobalToProcess
|DevHlp_SendEvent||0x25||an event occurred
5B DevHelp_VirtToLin
|-
5C DevHelp_LinToGDTSelector
|DevHlp_ROMCritSection||0x26||ROM Critical Section
5D DevHelp_GetDescInfo
|-
5E DevHelp_LinToPageList
|DevHlp_VerifyAccess||0x27||Verify access to memory
5F DevHelp_PageListToLin
|-
60 DevHelp_PageListToGDTSelector
|DevHlp_RAS||0x28||Put info in RAS trace buffer
61 DevHelp_RegisterTmrDD
|-
62 DevHelp_RegisterPerfCtrs ??
|DevHlp_ABIOSGetParms||0x29||Get ABIOS Calling Parameters
63 [[DevHelp_AllocateCtxHook]]
|-
64 [[DevHelp_FreeCtxHook]]
|DevHlp_AttachDD||0x2A||Attach to a device driver
65 [[DevHelp_ArmCtxHook]]
|-
66 DevHelp_VMSetMem
|DevHlp_InternalError||0x2B||Signal an internal error
67 DevHelp_OpenEventSem
|-
68 [[DevHelp_CloseEventSem]]
|DevHlp_ModifyPriority||0x2C||Undocumented (used by PM)
69 DevHelp_PostEventSem
|-
6A DevHelp_ResetEventSem
|DevHlp_AllocGDTSelector||0x2D||Allocate GDT Selectors
6B DevHlp_RegisterFreq * register PTD freq service entry point with kernel
|-
6C [[DevHelp_DynamicAPI]]
|DevHlp_PhysToGDTSelector||0x2E||Convert physical address to GDT selector
6D DevHlp_ProcRun2 * Unblock process via procrun2
|-
6E DevHelp_CreateInt13VDM * Create Int13 VDM (Internal Only) OEMINT13
|DevHlp_RealToProt||0x2F||Change from real to protected mode
6F DevHlp_RegisterKrnlExit
|-
70 DevHlp_PMPostEventSem * PM Post Event Semaphore
|DevHlp_ProtToReal||0x30||Change from protected to real mode
71 DevHlp_AcquireSpinLock (SMP only)
|-
72 DevHlp_ReleaseSpinLock (SMP only)
|DevHlp_EOI||0x31||Send EOI to PIC
73 DevHlp_InitIntMouseCursorData (SMP only)
|-
74 DevHlp_StartIntMouseCursor (SMP only)
|DevHlp_UnPhysToVirt||0x32||Mark completion of PhysToVirt
75 DevHlp_EndIntMouseCursor (SMP only)
|-
76 DevHlp_Port_IO (SMP only)
|DevHlp_TickCount||0x33||Modify timer
77 DevHlp_SetIRQMask (SMP only)
|-
78 DevHlp_GetIRQMask (SMP only)
|DevHlp_GetLIDEntry||0x34||Obtain Logical ID
79 DevHlp_CreateSpinLock (SMP only)
|-
7A DevHlp_FreeSpinLock (SMP only)
|DevHlp_FreeLIDEntry||0x35||Release Logical ID
7D [[DevHlp_KillProc]] **
|-
7E [[DevHlp_QSysState]] **
|DevHlp_ABIOSCall||0x36||Call ABIOS
7F [[DevHlp_OpenFile]] **
|-
80 [[DevHlp_CloseFile]] **
|DevHlp_ABIOSCommonEntry||0x37||Invoke Common Entry Point
81 [[DevHlp_ReadFile]] **
|-
82 [[DevHlp_ReadFileAt]] **
|DevHlp_GetDeviceBlock||0x38||Get ABIOS Device Block
83 DevHlp_RegisterKDD * Register Driver with kernel debugger
|-
|DevHlp_RegisterStackUsag||0x3A||Register for stack usage
|-
|DevHlp_LogEntry||0x3B||Place data in log buffer
|-
|DevHlp_VideoPause||0x3C||Video pause on/off
|-
|DevHlp_Save_Message||0x3D||Save message in SysInit Message Table
|-
|DevHlp_SegRealloc||0x3E||Realloc DD protect mode segment
|-
|DevHlp_PutWaitingQueue||0x3F||Put I/O request on waiting queue
|-
|DevHlp_GetWaitingQueue||0x40||Get I/O request from waiting queue
|-
|DevHlp_PhysToSys||0x41||Address conversion for the AOX
|-
|DevHlp_PhysToSysHook||0x42||Address conversion for the AOX
|-
|DevHlp_RegisterDeviceClass||0x43||Register DC entry point
|-
|DevHlp_RegisterPDD||0x50||Register PDD entry point with VDM manager for later PDD-VDD communication
|-
|DevHlp_RegisterBeep||0x51||register PTD beep service entry point with kernel
|-
|DevHlp_Beep||0x52||preempt beep service via PTD
|-
|DevHlp_FreeGDTSelector||0x53||Free allocated GDT selector
|-
|DevHlp_PhysToGDTSel||0x54||Convert Phys Addr to GDT sel with given access
|-
|DevHlp_VMLock||0x55||Lock linear address range
|-
|DevHlp_VMUnlock||0x56||Unlock address range
|-
|DevHlp_VMAlloc||0x56||Allocate memory
|-
|DevHlp_VMFree||0x58||Free memory or mapping
|-
|DevHlp_VMProcessToGlobal||0x59||Create global mapping to process memory
|-
|DevHlp_VMGlobalToProcess||0x5A||Create process mapping to global memory
|-
|DevHlp_VirtToLin||0x5B||Convert virtual address to linear
|-
|DevHlp_LinToGDTSelector||0x5C||Convert linear address to virtual
|-
|DevHlp_GetDescInfo||0x5D||Return descriptor information
|-
|DevHlp_LinToPageList||0x5E||build pagelist array from linear address
|-
|DevHlp_PageListToLin||0x5F||map page list array to linear address
|-
|DevHlp_PageListToGDTSelector||0x60||map page list array to GDT selector
|-
|DevHlp_RegisterTmrDD||0x61||Register TMR Device Driver
|-
|DevHlp_RegisterPerfCtrs||0x62||Register device driver perf. ctrs (PVW)
|-
|DevHlp_AllocateCtxHook||0x63||Allocate a context hook
|-
|DevHlp_FreeCtxHook||0x64||Free a context hook
|-
|DevHlp_ArmCtxHook||0x65||Arm a context hook
|-
|DevHlp_VMSetMem||0x66||commit/decommit memory
|-
|DevHlp_OpenEventSem||0x67||Open an event semaphore
|-
|DevHlp_CloseEventSem||0x68||Close an event semaphore
|-
|DevHlp_PostEventSem||0x69||post an event semaphore
|-
|DevHlp_ResetEventSem||0x6A||Reset an event semaphore           
|-
|DevHlp_RegisterFreq||0x6B||Register PTD freq service entry point with kernel
|-
|DevHlp_DynamicAPI||0x6C||Add a dynamic API
|-
|DevHlp_ProcRun2||0x6D||Unblock process via procrun2
|-
|DevHlp_CreateInt13VDM||0x6E||Create Int13 VDM (Internal Only) OEMINT13
|-
|DevHlp_RegisterKrnlExit||0x6F||Used to capture Kernel Exits  F78693
|-
|DevHlp_PMPostEventSem||0x70||PM Post Event Semaphore||
|-
|DevHlp_AcquireSpinLock||0x71||acquire Spin Lock||SMP only
|-
|DevHlp_ReleaseSpinLock||0x72||release Spin Lock||SMP only
|-
|DevHlp_InitIntMouseCursorData||0x73||Initialize Mouse/Cursor Data||SMP only
|-
|DevHlp_StartIntMouseCursor||0x74||Start Int Time Mouse/Cursor||SMP only
|-
|DevHlp_EndIntMouseCursor||0x75||End Int Time Mouse/Cursor||SMP only
|-
|DevHlp_Port_IO||0x76||Port I/O||SMP only
|-
|DevHlp_SetIRQMask||0x77||Set/Unset an IRQ Mask||SMP only
|-
|DevHlp_GetIRQMask||0x78||Retrieve an IRQ Mask state||SMP only
|-
|DevHlp_CreateSpinLock||0x79||Create Spin Lock||SMP only
|-
|DevHlp_FreeSpinLock||0x7A||Free Spin Lock||SMP only
|-
|[[DevHlp_KillProc]]||0x7D||Kill Proc
|-
|[[DevHlp_QSysState]]||0x7E||Query System State
|-
|[[DevHlp_OpenFile]]||0x7F||Ring-0 File system Write
|-
|[[DevHlp_CloseFile]]||0x80||Ring-0 File system Seek
|-
|[[DevHlp_ReadFile]]||0x81||Ring-0 File system Read
|-
|[[DevHlp_ReadFileAt]]||0x82||File system Read at (seek)
|-
|DevHlp_RegisterKDD||0x83||Register driver with kernel debugger
|}


[[Category:DevHlps]]
[[Category:DevHlps]]

Revision as of 18:44, 12 October 2019

DevHlp function names with request code

Function Name Code Description
DevHlp_SchedClock 0x0 Called each timer tick
DevHlp_DevDone 0x1 Device I/O complete
DevHlp_Yield 0x2 Yield CPU if resched set
DevHlp_TCYield 0x3 Yield to time critical task
DevHlp_ProcBlock 0x4 Block on event
DevHlp_ProcRun 0x5 Unblock process
DevHlp_SemRequest 0x6 Claim a semaphore
DevHlp_SemClear 0x7 Release a semaphore
DevHlp_SemHandle 0x8 Obtain a semaphore handle
DevHlp_PushRequest 0x9 Push the request
DevHlp_PullRequest 0xA Pull next request from Q
DevHlp_PullParticular 0xB Pull a specific request
DevHlp_SortRequest 0xC Push request in sorted order
DevHlp_AllocReqPacket 0xD Allocate request packet
DevHlp_FreeReqPacket 0xE free request packet
DevHlp_QueueInit 0xF Init/Clear char queue
DevHlp_QueueFlush 0x10 flush queue
DevHlp_QueueWrite 0x11 Put a char in the queue
DevHlp_QueueRead 0x12 Get a char from the queue
DevHlp_Lock 0x13 Lock segment
DevHlp_Unlock 0x14 Unlock segment
DevHlp_PhysToVirt 0x15 Convert physical address to virtual
DevHlp_VirtToPhys 0x16 Convert virtual address to physical
DevHlp_PhysToUVirt 0x17 Convert physical to LDT
DevHlp_AllocPhys 0x18 Allocate physical memory
DevHlp_FreePhys 0x19 Free physical memory
DevHlp_SetROMVector 0x1A Set a ROM service routine vector
DevHlp_SetIRQ 0x1B Set an IRQ interrupt
DevHlp_UnSetIRQ 0x1C Unset an IRQ interrupt
DevHlp_SetTimer 0x1D Set timer request handler
DevHlp_ResetTimer 0x1E Unset timer request handler
DevHlp_MonitorCreate 0x1F Create a monitor
DevHlp_Register 0x20 Install a monitor
DevHlp_DeRegister 0x21 Remove a monitor
DevHlp_MonWrite 0x22 pass data records to monitor
DevHlp_MonFlush 0x23 remove all data from stream
DevHlp_GetDOSVar 0x24 Return pointer to DOS variable
DevHlp_SendEvent 0x25 an event occurred
DevHlp_ROMCritSection 0x26 ROM Critical Section
DevHlp_VerifyAccess 0x27 Verify access to memory
DevHlp_RAS 0x28 Put info in RAS trace buffer
DevHlp_ABIOSGetParms 0x29 Get ABIOS Calling Parameters
DevHlp_AttachDD 0x2A Attach to a device driver
DevHlp_InternalError 0x2B Signal an internal error
DevHlp_ModifyPriority 0x2C Undocumented (used by PM)
DevHlp_AllocGDTSelector 0x2D Allocate GDT Selectors
DevHlp_PhysToGDTSelector 0x2E Convert physical address to GDT selector
DevHlp_RealToProt 0x2F Change from real to protected mode
DevHlp_ProtToReal 0x30 Change from protected to real mode
DevHlp_EOI 0x31 Send EOI to PIC
DevHlp_UnPhysToVirt 0x32 Mark completion of PhysToVirt
DevHlp_TickCount 0x33 Modify timer
DevHlp_GetLIDEntry 0x34 Obtain Logical ID
DevHlp_FreeLIDEntry 0x35 Release Logical ID
DevHlp_ABIOSCall 0x36 Call ABIOS
DevHlp_ABIOSCommonEntry 0x37 Invoke Common Entry Point
DevHlp_GetDeviceBlock 0x38 Get ABIOS Device Block
DevHlp_RegisterStackUsag 0x3A Register for stack usage
DevHlp_LogEntry 0x3B Place data in log buffer
DevHlp_VideoPause 0x3C Video pause on/off
DevHlp_Save_Message 0x3D Save message in SysInit Message Table
DevHlp_SegRealloc 0x3E Realloc DD protect mode segment
DevHlp_PutWaitingQueue 0x3F Put I/O request on waiting queue
DevHlp_GetWaitingQueue 0x40 Get I/O request from waiting queue
DevHlp_PhysToSys 0x41 Address conversion for the AOX
DevHlp_PhysToSysHook 0x42 Address conversion for the AOX
DevHlp_RegisterDeviceClass 0x43 Register DC entry point
DevHlp_RegisterPDD 0x50 Register PDD entry point with VDM manager for later PDD-VDD communication
DevHlp_RegisterBeep 0x51 register PTD beep service entry point with kernel
DevHlp_Beep 0x52 preempt beep service via PTD
DevHlp_FreeGDTSelector 0x53 Free allocated GDT selector
DevHlp_PhysToGDTSel 0x54 Convert Phys Addr to GDT sel with given access
DevHlp_VMLock 0x55 Lock linear address range
DevHlp_VMUnlock 0x56 Unlock address range
DevHlp_VMAlloc 0x56 Allocate memory
DevHlp_VMFree 0x58 Free memory or mapping
DevHlp_VMProcessToGlobal 0x59 Create global mapping to process memory
DevHlp_VMGlobalToProcess 0x5A Create process mapping to global memory
DevHlp_VirtToLin 0x5B Convert virtual address to linear
DevHlp_LinToGDTSelector 0x5C Convert linear address to virtual
DevHlp_GetDescInfo 0x5D Return descriptor information
DevHlp_LinToPageList 0x5E build pagelist array from linear address
DevHlp_PageListToLin 0x5F map page list array to linear address
DevHlp_PageListToGDTSelector 0x60 map page list array to GDT selector
DevHlp_RegisterTmrDD 0x61 Register TMR Device Driver
DevHlp_RegisterPerfCtrs 0x62 Register device driver perf. ctrs (PVW)
DevHlp_AllocateCtxHook 0x63 Allocate a context hook
DevHlp_FreeCtxHook 0x64 Free a context hook
DevHlp_ArmCtxHook 0x65 Arm a context hook
DevHlp_VMSetMem 0x66 commit/decommit memory
DevHlp_OpenEventSem 0x67 Open an event semaphore
DevHlp_CloseEventSem 0x68 Close an event semaphore
DevHlp_PostEventSem 0x69 post an event semaphore
DevHlp_ResetEventSem 0x6A Reset an event semaphore
DevHlp_RegisterFreq 0x6B Register PTD freq service entry point with kernel
DevHlp_DynamicAPI 0x6C Add a dynamic API
DevHlp_ProcRun2 0x6D Unblock process via procrun2
DevHlp_CreateInt13VDM 0x6E Create Int13 VDM (Internal Only) OEMINT13
DevHlp_RegisterKrnlExit 0x6F Used to capture Kernel Exits F78693
DevHlp_PMPostEventSem 0x70 PM Post Event Semaphore
DevHlp_AcquireSpinLock 0x71 acquire Spin Lock SMP only
DevHlp_ReleaseSpinLock 0x72 release Spin Lock SMP only
DevHlp_InitIntMouseCursorData 0x73 Initialize Mouse/Cursor Data SMP only
DevHlp_StartIntMouseCursor 0x74 Start Int Time Mouse/Cursor SMP only
DevHlp_EndIntMouseCursor 0x75 End Int Time Mouse/Cursor SMP only
DevHlp_Port_IO 0x76 Port I/O SMP only
DevHlp_SetIRQMask 0x77 Set/Unset an IRQ Mask SMP only
DevHlp_GetIRQMask 0x78 Retrieve an IRQ Mask state SMP only
DevHlp_CreateSpinLock 0x79 Create Spin Lock SMP only
DevHlp_FreeSpinLock 0x7A Free Spin Lock SMP only
DevHlp_KillProc 0x7D Kill Proc
DevHlp_QSysState 0x7E Query System State
DevHlp_OpenFile 0x7F Ring-0 File system Write
DevHlp_CloseFile 0x80 Ring-0 File system Seek
DevHlp_ReadFile 0x81 Ring-0 File system Read
DevHlp_ReadFileAt 0x82 File system Read at (seek)
DevHlp_RegisterKDD 0x83 Register driver with kernel debugger