Pointers

      SAS field SAS_file_CDS contains the selector for CDS RMP segment.

      CDSAddr locates the RMP handle which contains the selector for the CDS RMP segment.

    Locations
      CDS segment is dynamically allocated from the kernel resident heap.
    VM Owner
      cdsrmp (0xff61).

    Format

    cddFATFS

    ┌─────────┬──────┬──────┬────┬──────────────────────┐│Field    │Offset│Length│Type│Description           │
    │Name     │      │      │    │                      │
    ├─────────┼──────┼──────┼────┼──────────────────────┤
    │cddFAT_id│0     │2     │W   │cluster of current dir│
    └─────────┴──────┴──────┴────┴──────────────────────┘
    

    cdfsd

    ┌───────────┬──────┬──────┬────┬────────────┐
    │Field Name │Offset│Length│Type│Description │
    ├───────────┼──────┼──────┼────┼────────────┤
    │cdd_work[8]│0     │8     │S   │            │
    └───────────┴──────┴──────┴────┴────────────┘
    

    cdfsi

    ┌─────────────┬──────┬──────┬────┬─────────────────────────────────────┐
    │Field Name   │Offset│Length│Type│Description                          │
    ├─────────────┼──────┼──────┼────┼─────────────────────────────────────┤
    │cdi_hVPB     │0     │2     │W   │hVPB for the drive mapped to this CDS│
    ├─────────────┼──────┼──────┼────┼─────────────────────────────────────┤
    │cdi_end      │2     │2     │W   │End of assignment                    │
    ├─────────────┼──────┼──────┼────┼─────────────────────────────────────┤
    │cdi_flags    │4     │1     │B   │fs independent flags (see below)     │
    ├─────────────┼──────┼──────┼────┼─────────────────────────────────────┤
    │cdi_text[260]│5     │104   │A   │                                     │
    └─────────────┴──────┴──────┴────┴─────────────────────────────────────┘
    

    curdir

    ┌─────────────┬──────┬──────┬────┬───────────────────────────────────────┐
    │Field Name   │Offset│Length│Type│Description                            │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cd_handle    │0     │2     │W   │lookup key for this CDS                │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cd_pid       │2     │2     │W   │PID part of lockup key for handles 1-26│
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cd_refcnt    │4     │2     │W   │reference count CDS's                  │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cd_flags     │6     │1     │B   │See below for definitions              │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cd_devptr    │7     │4     │D   │local pointer to DPB or net device     │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cd_OwnerFSC  │B     │2     │W   │Owner FSC.Offst                        │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cd_fsd       │D     │8     │S   │File system dependent section          │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cd_fsi       │15    │10A   │S   │File system independent section        │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cdi_hVPB     │15    │2     │W   │hVPB for the drive mapped to this CDS  │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cdi_end      │17    │2     │W   │End of assignment                      │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cdi_flags    │19    │1     │B   │fs independent flags (see below)       │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │cdi_text[260]│1A    │104   │B   │                                       │
    ├─────────────┼──────┼──────┼────┼───────────────────────────────────────┤
    │             │11E   │1     │B   │                                       │
    └─────────────┴──────┴──────┴────┴───────────────────────────────────────┘
    

    cd_flags flag definitions

    ┌───────────────┬─────────┬───────────────────────────────┐
    │Name           │Bit Mask │Description                    │
    ├───────────────┼─────────┼───────────────────────────────┤
    │CD_ISNET       │0x80     │This CDS is for a remote drive │
    ├───────────────┼─────────┼───────────────────────────────┤
    │CD_INUSE       │0x40     │This CDS is in use             │
    ├───────────────┼─────────┼───────────────────────────────┤
    │CD_SPLICE      │0x20     │This CDS is for a JOINed drive │
    ├───────────────┼─────────┼───────────────────────────────┤
    │CD_JOIN        │CD_SPLICE│This CDS is for a JOINed drive │
    ├───────────────┼─────────┼───────────────────────────────┤
    │CD_LOCAL       │0x10     │This CDS is for a SUBSTed drive│
    ├───────────────┼─────────┼───────────────────────────────┤
    │CD_ISPSEUDOCHAR│0x08     │This CDS for a pseudo-char dev │
    ├───────────────┼─────────┼───────────────────────────────┤
    │CD_ISUNC       │0x04     │This CDS for a UNC name        │
    └───────────────┴─────────┴───────────────────────────────┘
    

    cdi_flags flag definitions

    ┌────────────────┬────────┬─────────────────────────────────┐
    │Name            │Bit Mask│Description                      │
    ├────────────────┼────────┼─────────────────────────────────┤
    │CDI_ISVALID     │0x80    │This CDS contains a valid cd_fsd │
    ├────────────────┼────────┼─────────────────────────────────┤
    │CDI_ISROOT      │0x40    │This CDS is for a root (no cdfsd)│
    ├────────────────┼────────┼─────────────────────────────────┤
    │CDI_MEDIASWAPPED│0x20    │This CDS may not be valid (forces│
    └────────────────┴────────┴─────────────────────────────────┘
    


    [Back] [Next]