03865c6b69
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@265 6ac86273-5f31-0410-b378-82cca8765d1b
25 lines
725 B
C
25 lines
725 B
C
/*
|
|
DynData.h
|
|
|
|
declarations for dynamic NEAR data allocations
|
|
|
|
the DynBuffer must initially be large enough to hold
|
|
the PreConfig data.
|
|
after the disksystem has been initialized, the kernel is
|
|
moveable and Dyn.Buffer resizable, but not before
|
|
*/
|
|
|
|
void *DynAlloc(char far *what, unsigned num, unsigned size);
|
|
void DynFree(unsigned memory_needed);
|
|
void far *DynLast(void);
|
|
|
|
struct DynS {
|
|
unsigned Allocated;
|
|
unsigned UsedByDiskInit;
|
|
unsigned AllocMax;
|
|
char Buffer[NDEV*sizeof(ddt) /* for InitDisk - Drive Data Table */
|
|
+ 16 * 71 /* initial f_nodes */
|
|
+200 /* give some extra bytes */
|
|
];
|
|
};
|