•  Back 
  •  MagiC's XFS-concept 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File11.5.16.33  The directory handle descriptor (DHD)                  TOS

The directory handles are required for Dopendir/Dclosedir/Drewinddir. 
Unlike the file descriptors (FDs) the kernel does not hold a list of 
opened directory handles (DH). When a process terminates, the XFS is 
called via the function xfs_pterm and must release all DHs created for 
the process.

The XFS can obtain the owner of a DH with the kernel pointer act_pd. 
For the kernel a DH looks like the following; these entries have to be 
created by the XFS:

dhd_dmd:  DS.L   1   /* 0x00: Pointer to DMD  */

See also: MagiC's XFS-concept   DMD