2、tuspart,andthelatter8000bytesforincomingoroutgoingdatapart.ThecommandheadsectionisdescribedusingthestructureKVAR_AM:59/*thefollowingdefinitionisusedtodescribethecommandstructure.60structKVAR_AM{6162unsignedcharsync;//thesynchronizationmark,userterminalissetto0,the1kernel.63unsignedcha
3、rCMD;//commandbyte,0:operation,1:thefirstquerycommand,2:3:lockagainquerycommand,command4:dynamicmemorybrowsing.64unsignedcharend0;//thisoperationcompleted.65unsignedcharend1;//setbythekernelagainwhenthequeryissentouttodistinguishtheresults(0)orcontinuetorequireuserstoentertheaddressse
4、t(1).66union{67unsignedintPID;//bytheusertosearchtheincomingprocessPID68unsignedcharpch[4];69};70union{71unsignedintsnum;//numericalsearchbyuserincoming.72unsignedcharsch[4];73};74unsignedintfin_pg;//bythekernelthathasfinishedsearchingthepages75unsignedinttol_pg;//bythekerneloutgoingt
5、otalsearchpages76unsignedintt_seg;//outgoing(firstsearch)bythekernelcodesegmentbaseaddress.77unsignedintd_seg;//camebythekernel(firstsearch)databaseaddress.78unsignedintb_seg;//camebythekernel(firstsearch)baseaddressoftheallocatedheap.79unsignedints_seg;//outgoing(firstsearch)bytheker
6、nelstackaddressoff.80unsignedintt_len;//codelength,thefilepreservationandlockingintheaddressfield,usedtodeterminewhetherthetargetlinelockingprocess.81unsignedintd_len;//datalength.82/thisis44bytes(0base).83structKVAR_LOCKladr[8];//inthelockingoperation,lockingupto8addressanddataintoth
7、ekernel.Atotalof96bytes,totaling44+96=140bytes84unsignedcharvv[52];//filled56bytes,thelengthof192bytes,8K(8192)ofthefirst192bytesofthebuffer85};Thedatasectionismainlytheaddressresultsetthatistransmittedfromthemoduletotheuserprogramforthefirstquery,Orthememorydatafromapagethatistransmi
8、ttedt