Changeset 2856 for trunk/kLdr/kLdrMod.c
- Timestamp:
- Nov 4, 2006, 11:19:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdrMod.c
r2855 r2856 538 538 * @returns 0 on success or no init function, non-zero on init function failure or invalid pMod. 539 539 * @param pMod The module. 540 */ 541 int kLdrModCallInit(PKLDRMOD pMod) 542 { 543 KLDRMOD_VALIDATE(pMod); 544 return pMod->pOps->pfnCallInit(pMod); 540 * @param uHandle The module handle to use if any of the init functions requires the module handle. 541 */ 542 int kLdrModCallInit(PKLDRMOD pMod, uintptr_t uHandle) 543 { 544 KLDRMOD_VALIDATE(pMod); 545 return pMod->pOps->pfnCallInit(pMod, uHandle); 545 546 } 546 547 … … 551 552 * @returns 0 on success or no term function, non-zero on invalid pMod. 552 553 * @param pMod The module. 554 * @param uHandle The module handle to use if any of the term functions requires the module handle. 553 555 * 554 556 * @remark Termination function failure will be ignored by the module interpreter. 555 557 */ 556 int kLdrModCallTerm(PKLDRMOD pMod )557 { 558 KLDRMOD_VALIDATE(pMod); 559 return pMod->pOps->pfnCallTerm(pMod );558 int kLdrModCallTerm(PKLDRMOD pMod, uintptr_t uHandle) 559 { 560 KLDRMOD_VALIDATE(pMod); 561 return pMod->pOps->pfnCallTerm(pMod, uHandle); 560 562 } 561 563 … … 564 566 * Call the thread attach or detach function of a mapped module (if any). 565 567 * 568 * Any per-thread TLS initialization/termination will have to be done at this time too. 569 * 566 570 * @returns 0 on success or no attach/detach function, non-zero on attach failure or invalid pMod. 567 571 * @param pMod The module. 572 * @param uHandle The module handle to use if any of the thread attach/detach functions 573 * requires the module handle. 568 574 * 569 575 * @remark Detach function failure will be ignored by the module interpreter. 570 576 */ 571 int kLdrModCallThread(PKLDRMOD pMod, u nsigned fAttachingOrDetaching)577 int kLdrModCallThread(PKLDRMOD pMod, uintptr_t uHandle, unsigned fAttachingOrDetaching) 572 578 { 573 579 KLDRMOD_VALIDATE(pMod); 574 580 KLDRHLP_VALIDATE_FLAGS(fAttachingOrDetaching, 1); 575 return pMod->pOps->pfnCallThread(pMod, fAttachingOrDetaching);581 return pMod->pOps->pfnCallThread(pMod, uHandle, fAttachingOrDetaching); 576 582 } 577 583 … … 583 589 * @param pMod The module. 584 590 */ 585 size_tkLdrModSize(PKLDRMOD pMod)591 KLDRADDR kLdrModSize(PKLDRMOD pMod) 586 592 { 587 593 KLDRMOD_VALIDATE_EX(pMod, 0);
Note:
See TracChangeset
for help on using the changeset viewer.