User Tools

Site Tools


cdc:nos2.source:nam5871:nrelblk

NRELBLK

Table Of Contents

  • [00006] PROC NRELBLK
  • [00049] PROC MRELS
  • [00050] PROC XTRACE

Source Code

NRELBLK.txt
  1. *DECK NRELBLK
  2. USETEXT NIPDEF
  3. USETEXT DRHDR
  4. USETEXT NCNB
  5. USETEXT PARAMS
  6. PROC NRELBLK;
  7. STARTIMS;
  8. #
  9. *1DC NRELBLK
  10. *
  11. * 1. PROC NAME AUTHOR DATE
  12. * NRELBLK C. BITTNER 81/10/12
  13. *
  14. * 2. FUNCTIONAL DESCRIPTION
  15. * DELETE ALL OUTSTANDING BLOCKS LINKED TO CCP
  16. *
  17. * 3.METHOD USED
  18. * LINK THROUGH DATA RING TO FIND BLOCKS QUEUED.
  19. * RELEASE BLOCKS BY CALLING MRELS.
  20. *
  21. * 4. ENTRY PARAMETERS
  22. * PARAMS1 - NCNB ADDRESS
  23. *
  24. * 5. EXIT PARAMETERS
  25. * NONE
  26. *
  27. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  28. * NIPDEF
  29. * DRHDR
  30. * NCNB
  31. * PARAMS
  32. * ACKHEAD
  33. *
  34. * 7. ROUTINES CALLED
  35. * MRELS - RELEASE BUFFER SPACE
  36. * XTRACE - TRACE PROCEDURE CALL
  37. *
  38. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  39. * THIS PROCEDURE IS CALLED BY COMPCON VIA NBSTTP.
  40. *
  41.  #
  42. STOPIMS;
  43.  
  44. #
  45.   EXTERNAL VARIABLES
  46. #
  47. XREF
  48. BEGIN
  49. PROC MRELS; # RETURN BUFFER #
  50. PROC XTRACE; # TRACE PROCEDURE CALL #
  51. END
  52.  
  53. #
  54.   INTERNAL VARIABLES
  55. #
  56. ITEM CURR; # INDUCTION LOOP VARIABLE #
  57. ITEM NEXT; # NEXT ENTRY IN DATA RING #
  58.  
  59.  
  60. #**********************************************************************#
  61.  
  62. BEGIN
  63.  
  64. CONTROL IFEQ DEBUG,1;
  65. XTRACE("BRELB") ;
  66. CONTROL FI;
  67.  
  68. # DELETE ALL OUTSTANDING BLOCKS LINKED FOR CCP #
  69. P<NCNB> = PARAMS1;
  70. P<DRHDRWD> = 0;
  71. CURR = NCNBDRFP[0]; # FIRST ENTRY IN DATA RING #
  72. FOR CURR = CURR WHILE (CURR NQ LOC(NCNBDRFP[0]) AND CURR NQ 0) DO
  73. BEGIN
  74. NEXT = NEXTPTR[CURR]; # NEXT ENTRY IN DATA RING #
  75. MRELS(CURR); # RELEASE DATA RING ENTRY #
  76. CURR = NEXT;
  77. END
  78.  
  79. NCNBNBO[0] = 0; # NETWORK BLOCKS OUTSTANDING #
  80. NCNBDBSN[0] = 0 ;
  81. NCNBWD2[0] = 0; # CLEAR DATA RING/ACKQ DATA #
  82. RETURN ; # RETURN TO CALLING PROGRAM #
  83. END
  84. TERM
cdc/nos2.source/nam5871/nrelblk.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator