User Tools

Site Tools


cdc:nos2.source:nam5871:locllcb

LOCLLCB

Table Of Contents

  • [00006] PROC LOCLLCB((HN),(TN),LLCBAD)
  • [00047] PROC XTRACE

Source Code

LOCLLCB.txt
  1. *DECK LOCLLCB
  2. USETEXT NIPDEF
  3. USETEXT TNT
  4. USETEXT LLCB
  5. USETEXT PT
  6. PROC LOCLLCB((HN),(TN),LLCBAD); # LOCATE LLCB #
  7. STARTIMS;
  8. #
  9. *1DC LOCLLCB
  10. *
  11. * 1. PROC NAME AUTHOR DATE
  12. * LOCLLCB C. BITTNER 81/04/16
  13. *
  14. * 2. FUNCTIONAL DESCRIPTION
  15. * LOCATE LOGICAL LINK CONTROL BLOCK.
  16. *
  17. * 3. METHOD USED
  18. * USING THE TERMINAL NODE, INDEX INTO THE TNT TO FIND THE
  19. * FIRST LLCB FOR THE LOGICAL LINK.
  20. * SEARCH FOR LLCB WITH A MATCHING HOST NODE.
  21. *
  22. * 4. ENTRY PARAMETERS
  23. * HN - HOST NODE
  24. * TN - TERMINAL NODE
  25. *
  26. * 5. EXIT PARAMETERS
  27. * LLCBAD - LLCB ADDRESS
  28. *
  29. * 6. SYMPL TEXTS USED
  30. * NIPDEF PT
  31. * TNT LLCB
  32. *
  33. * 7. ROUTINES CALLED
  34. * XTRACE - RECORD PROCEDURE CALLS
  35. *
  36. * 8. DAYFILE MESSAGES
  37. * THIS PROCEDURE IS CALLED BY MANY ROUTINES.
  38. *
  39.  #
  40. STOPIMS;
  41.  
  42. #
  43.   EXTERNAL VARIABLES
  44. #
  45. XREF
  46. BEGIN
  47. PROC XTRACE; # TRACE CALLS #
  48. END
  49. #
  50.   INPUT PARAMETERS
  51. #
  52. ITEM HN; # HOST NODE NUMBER #
  53. ITEM TN; # TERMINAL NODE NUMBER #
  54. #
  55.   OUTPUT PARAMETERS
  56. #
  57. ITEM LLCBAD; # FWA OF LLCB FOUND #
  58. #
  59.   LOCAL VARIABLES
  60. #
  61. ITEM I I; # INDUCTION VARIABLE #
  62.  
  63. CONTROL EJECT;
  64.  
  65. BEGIN # LOCLLCB #
  66.  
  67. CONTROL IFEQ DEBUG,1;
  68. XTRACE("LOCLL"); # TRACE CALL #
  69. CONTROL FI;
  70.  
  71.  
  72. IF TN LS TNTBS[0]
  73. THEN # TERMINAL NODE NUMBER WITHIN TNT RANGE #
  74. BEGIN # SEARCH FOR LLCB WITH MATCHING HOST NODE #
  75. P<LLCB> = TNTLLAD[TN]; # FWA OF LLCB #
  76. FOR I=I WHILE P<LLCB> NQ 0 # LLCB EXISTS #
  77. AND HN NQ LLCBHN[0] # HOST NODE NUMBER NOT MATCH #
  78. DO # GET NEXT LLCB IN CHAIN #
  79. BEGIN
  80. P<LLCB> = LLCBFP[0]; # RESET LLCB ADDRESS #
  81. END
  82. LLCBAD = P<LLCB>;
  83. END
  84.  
  85. ELSE # TERMINAL NODE NON-EXISTENT, NO LLCB #
  86. LLCBAD = 0;
  87.  
  88. RETURN;
  89. END # LOCLLCB #
  90. TERM
cdc/nos2.source/nam5871/locllcb.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator