Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:fapi:dossuballoc [2021/11/04 13:37] – prokushev | en:docs:fapi:dossuballoc [2021/12/05 11:05] (current) – prokushev | ||
---|---|---|---|
Line 3: | Line 3: | ||
====== DosSubAlloc ====== | ====== DosSubAlloc ====== | ||
- | This call suballocates portions of a segment allocated by DosAllocSeg or DosAllocShrSeg, | + | This call suballocates portions of a segment allocated by [[DosAllocSeg]] or [[DosAllocShrSeg]], and initialized by [[DosSubSet]]. |
===== Syntax ===== | ===== Syntax ===== | ||
Line 14: | Line 14: | ||
* SegSelector ([[SEL]]) - input : Data segment selector that allocates the memory. | * SegSelector ([[SEL]]) - input : Data segment selector that allocates the memory. | ||
* BlockOffset ([[PUSHORT]]) - output : Address of the allocated block offset. | * BlockOffset ([[PUSHORT]]) - output : Address of the allocated block offset. | ||
- | * Size ([[USHORT]ъ) - input : Memory block size requested in bytes. | + | * Size ([[USHORT]]) - input : Memory block size requested in bytes. |
===== Return Code ===== | ===== Return Code ===== | ||
Line 30: | Line 30: | ||
Before a segment allocated by [[DosAllocSeg]] or [[DosAllocShrSeg]] can be suballocated, | Before a segment allocated by [[DosAllocSeg]] or [[DosAllocShrSeg]] can be suballocated, | ||
- | Allocation size must be a multiple of four bytes. Otherwise, it is rounded up to a multiple of four bytes. The maximum value for the size parameter is the size that was set with DosSubSet minus 8. Note that no paragraph (16-byte) alignment is required; all requests are serviced on a byte alignment basis. | + | Allocation size must be a multiple of four bytes. Otherwise, it is rounded up to a multiple of four bytes. The maximum value for the size parameter is the size that was set with [[DosSubSet]] minus 8. Note that no paragraph (16-byte) alignment is required; all requests are serviced on a byte alignment basis. |
A suballocated block of memory in a suballocated segment is freed by a call to [[DosSubFree]]. | A suballocated block of memory in a suballocated segment is freed by a call to [[DosSubFree]]. |