linux/drivers/tty/n_tracesink.c
<<
" /spaon> /formn> a " href="../linux+v33162/drivers/tty/n_tracesink.c">" img src="../.static/gfx/right.png" alt=">>">" /spaon>" spao class="lxr_search">" " input typue=hidden" namue=navtarget" value=">" input typue=text" namue=search" ide=search">" buttiontypue=submit">Search /formn> /spaon>" spao class="lxr_prefs"n> a href="+prefs?return=drivers/tty/n_tracesink.c"" onclick="return ajax_prefs();">" Prefs> /a>" /spaon> /divn> form acptio="ajax+*" method="post" onsubmit="return false;">" input typue=hidden" namue=ajax_lookup" ide=ajax_lookup" value=">" /formn>" div class="headingbottim"> div ide=search_results" class="search_results"> n> /divn> div ide=content">> div ide=file_contents"n
   1 /a> spao class="comment">/* /spaon>   2 /a> spao class="comment"> *  n_tracesink.c - Trace data router and sink path through tty space. /spaon>   3 /a> spao class="comment"> * /spaon>   4 /a> spao class="comment"> *  Copyright (C) Intel 201.2   5 /a> spao class="comment"> * /spaon>   6 /a> spao class="comment"> * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /spaon>   7 /a> spao class="comment"> * /spaon>   8 /a> spao class="comment"> *  This program is free software; you cao redistribute it and/or modify /spaon>   9 /a> spao class="comment"> *  it under the terms of the GNU General Public License verstion2 /spaon>  .10 spao class="comment"> *  as published by the Free Software Foundaptio. /spaon>  11 /a> spao class="comment"> * /spaon>  12 /a> spao class="comment"> *  This program is distributed in the hope that it will be useful, /spaon>  13 /a> spao class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of /spaon>  14 /a> spao class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the /spaon>  15 /a> spao class="comment"> *  GNU General Public License for more details. /spaon>  16 /a> spao class="comment"> *sink.c.c#
	  >
  2316272.42
  
   *  bu9ABILITY or FITNESS FOR A PARTICULAR PURRCHANTABILa href="drivers/tty/n_tracesink.c#L5" ide=LT> *  2t under the terms of th2 GNU 2eneral Public License verstiontf="driversnse fa=faomnk.c#PTIdriur"drANTA="drcipANTA=ref="db617c43_3/0"n *  as publ2shed 2y the Free Software Foundapti toeak clr-d_trsin2" clport,rANke USBL15" ide=L15" class="line" namue=L15">  15 /a2k.c#L1" iide=L1" class="line" namL11">2 11 /a> spao class="comment">  /spaspatoeon>videeakwayatoe"poL15tss="emntf="driverson15" ide=L15" class="line" namue=L15">  15 /a2t"> *  T2is program is distribut2d in 2he hope that it will be usefuldevversk.c#L1do not haveeakPTIdHWss="ule,="drjust nein2s="em15" ide=L15" class="line" namue=L15">  15 /a2nt"> *  2ut WITHOUT ANY WARRANTY2 with2ut even the implied warranty otf="driverstoed we _tra"dra="dfferrradHWs_tr>"
	portL15" ide=L15" class="line" namue=L15">  15 /a2ent"> * 2MERCHANTABILITY or FITN2SS FO2 A PARTICULAR PURPOSE.  See th /spaspaparra"dra=solu
    15 /a2 spao cl2ss="comment"> *  GNU Ge2eral 2ublic License for more detail/15" ide=L15" class="line" namue=L15">  15 /a2L16" ide2L16" class="line" namue2L16">2 16 /=L15" class="line" namue=L15">  15 /a2tty/n_tr2cesink.c#L2" 6alue="2312tion 2  
  #includee<L15" clasincludeon>
  /init.hesink.c#Lef=f">n>
  /init.h 
  n>	
=L15" class="line" namue=L15">  15 /a2A PARTIC2LAR PURRCHANTABILa href2"driv29 
  #includee<L15" clasincludeon>
  /kernel.hesink.c#Lef=f">n>
  /kernel.h 
  n>	
=L15" class="line" namue=L15">  15 /a3nt"> *  3t under the terms of th3 GNU 30 
  #includee<L15" clasincludeon>
  /s="ule.hesink.c#Lef=f">n>
  /s="ule.h 
  n>	
=L15" class="line" namue=L15">  15 /a3spao cla3s="comment"> *  as publ3shed 31 
  #includee<L15" clasincludeon>
  / 
 Ps.hesink.c#Lef=f">n>
  / 
 Ps.h 
  n>	
=L15" class="line" namue=L15">  15 /a3k.c#L1" 3ide=L1" class="line" na3L11">32 
  #includee<L15" clasincludeon>
  /ioctl.hesink.c#Lef=f">n>
  /ioctl.h 
  n>	
=L15" class="line" namue=L15">  15 /a3> *  n_trracesink.c - Trace data d in 33 
  #includee<L15" clasincludeon>
  / ty.hesink.c#Lef=f">n>
  / ty.h 
  n>	
=L15" class="line" namue=L15">  15 /a3nt"> *  3ut WITHOUT ANY WARRANTY3 with34 
  #includee<L15" clasincludeon>
  / ty_l"drc.hesink.c#Lef=f">n>
  / ty_l"drc.h 
  n>	
=L15" class="line" namue=L15">  15 /a3ent"> * 3MERCHANTABILITY or FITN3SS FO35 
  #includee<L15" clasincludeon>
  /errno.hesink.c#Lef=f">n>
  /errno.h 
  n>	
=L15" class="line" namue=L15">  15 /a3 spao cl3ss="comment"> *  GNU Ge3eral 36 
  #includee<L15" clasincludeon>
  /riveng.hesink.c#Lef=f">n>
  /riveng.h 
  n>	
=L15" class="line" namue=L15">  15 /a3L16" ide3L16" class="line" namue3L16">37 
  #includee<L15" clasincludeoasm-gon>asm-gon>	
=L15" class="line" namue=L15">  15 /a3tty/n_tr3cesink.c#L2" 6alue="2313tion 3  
  #includee"L15" class="line" namue=L15">  15hesink.c#Lef=f">ue=L15">  15h 
  nquot;=L15" class="line" namue=L15">  15 /a3A PARTIC3LAR PURRCHANTABILa href3"driv3916 /=L15" class="line" namue=L15">  15 /a4nt"> *  4t under the terms of th4 GNU 4eneral Public License verst47b617c43_3/0"n *  as publ4shed 4y the Free Software Foundapti Ok.cr l"drc=ref="dsk cl 65536 which basically means="line" namue=L12">  12 /a> spao class="comme4k.c#L1" 4ide=L1" class="line" na4L11">4 11 /a> spao class="comment"> 'Itracealways accept 64k'_tracflow /divrolaspaoffL15" ide=L15" class="line" namue=L15">  15 /a4> *  n_t4racesink.c - Trace data4d in 4he hope that it will be useful /spanumbcr ef="eemin2apon>priateoy/n_k.ef="="linL15" ide=L15" class="line" namue=L15">  15 /a4k.c#L3" iide=L3" class="line" nam with4ut even the implied warranty /15" ide=L15" class="line" namue=L15">  15 /a4ent"> * 4MERCHANTABILITY or FITN4SS FO45 
  #defNTA==search" ic="e=RECEIVE_ROOMookup"  vaf=f">RECEIVE_ROOM 
  "	 
65536=L15" class="line" namue=L15">  15 /a4 spao cl4ss="comment"> *  GNU Ge4eral 46 
  #defNTA==search" ic="e=DRIVERNAMEookup"  vaf=f">DRIVERNAME 
  "	 
  en the implieriveng" nquot;ue=L15">  1"L5" ide=L15" class="line" namue=L15">  15 /a4L16" ide4L16" class="line" namue4L16">4 16 /=L15" class="line" namue=L15">  15 /a4tty/n_tr4cesink.c#L2" 6alue="2314tion 4  
  
  
   *  5t under the terms of th5 GNU 5eneral Public License verstiontoeak" clfaomnanyonc#rall fa=.ef=kernel API, whichers/tty/n_tracesink.c#L4" ide=L4" class="linespao cla5s="comment"> *  as publ5shed 5y the Free Software Foundapti meets cust wer requireoundsy/n_tracnk.c#L4"mdrc/pti.cers/tty/n_tracesink.c#L4" ide=L4" class="linek.c#L1" 5ide=L1" class="line" na5L11">5 11 /a> spao class="comment"> on>ject=L14o=.c#neinpatoeknow when=.c#racetracracnot writdrwheners/tty/n_tracesink.c#L4" ide=L4" class="line> *  n_t5racesink.c - Trace data5d in 5he hope that it will be usefultracAPI=ef=ralled. In_traory,ltracAPI=racebe=ralleders/tty/n_tracesink.c#L4" ide=L4" class="linek.c#L3" 5ide=L3" class="line" na5 with5ut even the implied warranty oafy/n_tr init(), /spbefracea successful open(),whichers/tty/n_tracesink.c#L4" ide=L4" class="linee" namue==L4">   4 /a> spao classSS FO5 A PARTICULAR PURPOSE.  See thwoulacrrashltracsystem ifk" clspanot checkedL15" ide=L15" class="line" namue=L15">  15 /a5 spao cl5ss="comment"> *  GNU Ge5eral 5ublic License for more detail/15" ide=L15" class="line" namue=L15">  15 /a5L16" ide5L16" class="line" namue5L16">5 16 /select rivuct==search" ic="e= ty_rivuctookup"  vaf=f"> ty_rivuct 
  "*=search" ic="e= .ef_ tyookup"  vaf=f"> .ef_ ty 
  ;=L15" class="line" namue=L15">  15 /a5tty/n_tr5cesink.c#L2" 6alue="2315tion 5816 /select =search" ic="e=DEFINE_MUTEXookup"  vaf=f">DEFINE_MUTEX16 /(=search" ic="e=writdlockookup"  vaf=f">writdlock16 /);=L15" class="line" namue=L15">  15 /a5A PARTIC5LAR PURRCHANTABILa href5"driv5916 /=L15" class="line" namue=L15">  15 /a6nt"> *  6t under the terms of th6 GNU 6eneral Public License verst47l 201.2 *  as publ6shed 6y the Free Software Foundapti /tty/n_trac_open(),- Called when=ak" clspaopen href=a SW undityL15" ide=L15" class="line" namue=L15">  15 /a6k.c#L1" 6ide=L1" class="line" na6L11">6 11 /a> spao class="comment"> @ na:a hreinalldevveratoetracl"drc.15" ide=L15" class="line" namue=L15">  15 /a6> *  n_t6racesink.c - Trace data6d in 6r and sink path through tty space. /spaon>   4 /a> spao clas6SS FO6 A PARTICULAR PURPOSE.  See theeeee0oy/n_success="line" namue=L12">  12 /a> spao class="comme6k.c#L5" iide=L5" class="line" nameral 6">   5 /a> spao class="commentttttt-EFAULT = /dulan't get=ak" clk=L1 /tty/n_trac ide=Lsit"line" namue=L12">  12 /a> spao class="comme6L16" ide6L16" class="line" namue6L16">6 16 /a> spao class="comment">  arch  13 /a> spao class="comm6tty/n_tr6cesink.c#L2" 6alue="2316tion 6">   7 /a> spao class="comment"tttt-EEXIST = open(),ralled successfully oneratracitcracnot="line" namue=L13">  13 /a> spao class="comm6A PARTIC6LAR PURRCHANTABILa href6"driv6 cao redistribute it and/or modddddbe=ralled agaiL10" ide=L10" class="line" namue=L10">  .107nt"> *  7t under the terms of th7 GNU 7eneral Public License verstio0" ide=L10" class="line" namue=L10">  .107spao cla7s="comment"> *  as publ7shed 7y the Free Software Foundapti Caveats: open(),shoulaconly be=successful tracfirst timrat0" ide=L10" class="line" namue=L10">  .107k.c#L1" 7ide=L1" class="line" na7L11">7 11 /a> spao class="comment"> SW undity=rallsy/tL15" ide=L15" class="line" namue=L15">  15 /a7> *  n_t7racesink.c - Trace data7d in 7r and sink path through tty s/15" ide=L15" class="line" namue=L15">  15 /a7k.c#L3" 7ide=L3" class="line" na7 with7416 /select int==search" ic="e=/tty/n_trac_openookup"  vaf=f">/tty/n_trac_open16 /(rivuct==search" ic="e= ty_rivuctookup"  vaf=f"> ty_rivuct 
  "*=search" ic="e= tyookup"  vaf=f"> ty 
  )=L15" class="line" namue=L15">  15 /a7e" namue7=L4">   4 /a> spao clas7SS FO7 A PA{=L15" class="line" namue=L15">  15 /a7k.c#L5" 7ide=L5" class="line" na7eral 76 
  "	 
    int==search" ic="e=retvalookup"  vaf=f">retval 
  "= -=search" ic="e=EEXISTookup"  vaf=f">EEXIST 
  ;=L15" class="line" namue=L15">  15 /a7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~L16">7 16 /=L15" class="line" namue=L15">  15 /a7tty/n_tr7cesink.c#L2" 6alue="2317tion 78 
  "	 
    =search" ic="e=mute 
  ckookup"  vaf=f">mute 
  ck16 /(&=search" ic="e=writdlockookup"  vaf=f">writdlock16 /);=L15" class="line" namue=L15">  15 /a7A PARTIC7LAR PURRCHANTABILa href7"driv79 
  "	 
    if (=search" ic="e= .ef_ tyookup"  vaf=f"> .ef_ ty 
   == =search" ic="e=NULLookup"  vaf=f">NULL16 /) {=L15" class="line" namue=L15">  15 /a8nt"> *  8t under the terms of th8 GNU 80 
  "	 
    "	 
    =search" ic="e= .ef_ tyookup"  vaf=f"> .ef_ ty 
   ===search" ic="e= ty_k=L1_"
	  ty_k=L1_"
	16 /(=search" ic="e= tyookup"  vaf=f"> ty 
  );=L15" class="line" namue=L15">  15 /a8spao cla8s="comment"> *  as publ8shed 81 
  "	 
    "	 
    if (=search" ic="e= .ef_ tyookup"  vaf=f"> .ef_ ty 
   == =search" ic="e=NULLookup"  vaf=f">NULL16 /) {=L15" class="line" namue=L15">  15 /a8k.c#L1" 8ide=L1" class="line" na8L11">82 
  "	 
    "	 
    "	 
    =search" ic="e=retvalookup"  vaf=f">retval 
  "= -=search" ic="e=EFAULTookup"  vaf=f">EFAULT 
  ;=L15" class="line" namue=L15">  15 /a8> *  n_t8racesink.c - Trace data8d in 83 
  "	 
    "	 
    } else {=L15" class="line" namue=L15">  15 /a8k.c#L3" 8ide=L3" class="line" na8 with84 
  "	 
    "	 
    "	 
    =search" ic="e= tyookup"  vaf=f"> ty 
  -n>	
=search" ic="e="drc_iverookup"  vaf=f">"drc_iver 
   ===search" ic="e= .ef_ tyookup"  vaf=f"> .ef_ ty 
  ;=L15" class="line" namue=L15">  15 /a8e" namue8=L4">   4 /a> spao clas8SS FO85 
  "	 
    "	 
    "	 
    =search" ic="e= ty_s="lin_flush_buffer  ty_s="lin_flush_buffer16 /(=search" ic="e= tyookup"  vaf=f"> ty 
  );=L15" class="line" namue=L15">  15 /a8k.c#L5" 8ide=L5" class="line" na8eral 86 
  "	 
    "	 
    "	 
    =search" ic="e=retvalookup"  vaf=f">retval 
  "= 0;=L15" class="line" namue=L15">  15 /a8~~~~~~~~8~~~~~~~~~~~~~~~~~~~~~~~8L16">87 
  "	 
    "	 
    }=L15" class="line" namue=L15">  15 /a8k.c#L7" iide=L7" class="line" namtion 88 
  "	 
    }=L15" class="line" namue=L15">  15 /a8A PARTIC8LAR PURRCHANTABILa href8"driv89 
  "	 
    =search" ic="e=mute 
un  ckookup"  vaf=f">mute 
un  ck16 /(&=search" ic="e=writdlockookup"  vaf=f">writdlock16 /);=L15" class="line" namue=L15">  15 /a9nt"> *  9t under the terms of th9 GNU 9016 /=L15" class="line" namue=L15">  15 /a9spao cla9s="comment"> *  as publ9shed 91 
  "	 
    eturn a=search" ic="e=retvalookup"  vaf=f">retval 
  ;=L15" class="line" namue=L15">  15 /a9k.c#L1" 9ide=L1" class="line" na9L11">92 
  }=L15" class="line" namue=L15">  15 /a9> *  n_t9racesink.c - Trace data9d in 9316 /=L15" class="line" namue=L15">  15 /a9k.c#L3" 9ide=L3" class="line" na9 with9ut even the implied warrant47l 201.2   4 /a> spao clas9SS FO9 A PARTICULAR PURPOSE.  See th/tty/n_trac_close(),- close /dineers/t 201.2   5 /a> spao class="comment@ na:a hreinalldevveratoetracl"drc.15" ide=L15" class="line" namue=L15">  15 /a9~~~~~~~~9~~~~~~~~~~~~~~~~~~~~~~~9L16">9~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /spaon>   7 /a> spao class="commentCalled when=akrivers/t undity=wandsytoedlose a /dineers/t.15" ide=L15" class="line" namue=L15">  15 /a9*  This pprogram is free software"driv9 cao redistribute it and/or m/15" ide=L15" class="line" namue=L15">  15 /a10nt"> *  itt under the terms of the  GNUe  16 /select void==search" ic="e=/tty/n_trac_dloseookup"  vaf=f">/tty/n_trac_dlose16 /(rivuct==search" ic="e= ty_rivuctookup"  vaf=f"> ty_rivuct 
  "*=search" ic="e= tyookup"  vaf=f"> ty 
  )=L15" class="line" namue=L15">  15 /a10spao clas0s="comment"> *  as publi01GNUe 1A PA{=L15" class="line" namue=L15">  15 /a10L11" ide=0L11" class="line" namue=02GNUe 2 
  "	 
    =search" ic="e=mute 
  ckookup"  vaf=f">mute 
  ck16 /(&=search" ic="e=writdlockookup"  vaf=f">writdlock16 /);=L15" class="line" namue=L15">  15 /a10t"> *  Th0is program is distribute03GNUe 3 
  "	 
    =search" ic="e= ty_s="lin_flush_buffer  ty_s="lin_flush_buffer16 /(=search" ic="e= tyookup"  vaf=f"> ty 
  );=L15" class="line" namue=L15">  15 /a10nt"> *  b0ut WITHOUT ANY WARRANTY;04GNUe 4 
  "	 
    =search" ic="e= ty_k=L1_pu	  ty_k=L1_pu	16 /(=search" ic="e= .ef_ tyookup"  vaf=f"> .ef_ ty 
  );=L15" class="line" namue=L15">  15 /a10ent"> *  0MERCHANTABILITY or FITNE05GNUe 5 
  "	 
    =search" ic="e= .ef_ tyookup"  vaf=f"> .ef_ ty 
   ===search" ic="e=NULLookup"  vaf=f">NULL16 /;=L15" class="line" namue=L15">  15 /a10 spao cla0ss="comment"> *  GNU Gen06GNUe 6 
  "	 
    =search" ic="e= tyookup"  vaf=f"> ty 
  -n>	
=search" ic="e="drc_iverookup"  vaf=f">"drc_iver 
   ===search" ic="e=NULLookup"  vaf=f">NULL16 /;=L15" class="line" namue=L15">  15 /a10L16" ide=0L16" class="line" namue=07GNUe 7 
  "	 
    =search" ic="e=mute 
un  ckookup"  vaf=f">mute 
un  ck16 /(&=search" ic="e=writdlockookup"  vaf=f">writdlock16 /);=L15" class="line" namue=L15">  15 /a10tty/n_tra0cesink.c#L2" 6alue="231908GNUe 8 
  }=L15" class="line" namue=L15">  15 /a10A PARTICU0LAR PURRCHANTABILa href=09GNUe 916 /=L15" class="line" namue=L15">  15 /a1ent"> *  iit under the terms of thee GNU1General Public License verst47l 201.2 *  as publis1GNUeby the Free Software Foundaptih/tty/n_trac_read(),- read requestlfaomn clrlass=" 201.2 spao class="comment"> @ na:aa hreinalldevverapclatty/ntoetracl"drc.15" ide=L15" class="line" namue=L15">  15 /a1nt"> *  Thhis program is distributeed in1the hope that it will be useful@	 
 : po/ntpaono open 	 
  object=15" ide=L15" class="line" namue=L15">  15 /a1nnt"> *  bbut WITHOUT ANY WARRANTY;; wit1out even the implied warranty o@buf:aapo/ntpaono tracnversbufferk.c#L1gets cesitually eturn edL15" ide=L15" class="line" namue=L15">  15 /a1ment"> *   MERCHANTABILITY or FITNEESS F1R A PARTICULAR PURPOSE.  See th@nr:aaanumbcr of bytef="drivernversbufferk.c#L1is eturn edL15" ide=L15" class="line" namue=L15">  15 /a1m spao claass="comment"> *  GNU Genneral1Public License for more details. /spaon> spao class="comment"> funers/tk.c#L1allows read(),funers/tality=inn clrass=". Byldefault ifk".efs. /spaon>  .101 A PARTICUULAR PURRCHANTABILa href=="dri1ers/tty/n_tracesink.c#L5" ide=L/tty/n_viah/tty/n_trac_recebu9buf(),atrack.cre ef=noesiallrequireoundo. /spaon> *  i2t under the terms of th12 GNU12eneral Public License verstionto L13"eound_k.ef=euners/t. Howcesr,atr error eturn a acpt ok.cr .c#t 201.2 *  as publ12shed12y the Free Software Foundapti -EIO,shoulac12" cldrjust to showk.c#L1k.cre was_tr invn>	anot to have 201.2 spao class="comment"> k.ef=euners/t L13"eoundea. oRturn a acpt bacldron read(),mspapage#L15" ide=L15" class="line" namue=L15">  15 /a>2t"> *  T12is program is distribut12d in12he hope that it will be usefu15" ide=L15" class="line" namue=L15">  15 /a>2nt"> *  b2ut WITHOUT ANY WARRANTY12 wit12ut even the implied warranty oRturn :pace. /spaon> * 12MERCHANTABILITY or FITN12SS F12 A PARTICULAR PURPOSE.  See thhhhhhh-EINVALpace. /spaon> *  GNU Ge12eral12ublic License for more detail/15" ide=L15" class="line" namue=L15">  15 /a12L16" ide12L16" class="line" namue12L16"12 16 /select =search" ic="e=ssize_	 ssize_	 
  "=search" ic="e=/tty/n_trac_readookup"  vaf=f">/tty/n_trac_read16 /(rivuct==search" ic="e= ty_rivuctookup"  vaf=f"> ty_rivuct 
  "*=search" ic="e= tyookup"  vaf=f"> ty 
  , rivuct==search" ic="e=	 
 ookup"  vaf=f">	 
  
  "*=search" ic="e=	 
 ookup"  vaf=f">	 
  
  ,=L15" class="line" namue=L15">  15 /a12tty/n_tra2cesink.c#L2" 6alue="23112tion128 
  "	 
                            unsign hrchar==search" ic="e=__ clrookup"  vaf=f">__ clr 
  "*=search" ic="e=bufookup"  vaf=f">buf 
  , =search" ic="e=size_	 size_	 
  "=search" ic="e=/rookup"  vaf=f">nr16 /) {=L15" class="line" namue=L15">  15 /a12A PARTIC12LAR PURRCHANTABILa href12"dri129 
  "	 
    eturn a-=search" ic="e=EINVALookup"  vaf=f">EINVALpa /;=L15" class="line" namue=L15">  15 /a13nt"> *  13t under the terms of th13 GNU130 
  }=L15" class="line" namue=L15">  15 /a13spao cla13s="comment"> *  as publ13shed131 
  =L15" class="line" namue=L15">  15 /a13L11" ide=3ide=L1" class="line" na13L11"13 11 /a> spao class="comment47l 201.2 *  Thiis program is distributedd in13he hope that it will be useful/tty/n_trac_writd(),- Funers/tk.c#L1allows writd(),inn clrass=". 201.2 *  b3ut WITHOUT ANY WARRANTY13 wit13ut even the implied warranty o@ na:aa hreinalldevverapclatty/ntoetracl"drc.15" ide=L15" class="line" namue=L15">  15 /a13ent"> * 13MERCHANTABILITY or FITN13SS F13 A PARTICULAR PURPOSE.  See th@	 
 : po/ntpaono open 	 
  object=15" ide=L15" class="line" namue=L15">  15 /a13 spao cl13ss="comment"> *  GNU Ge13eral13">   5 /a> spao class="comment@buf:aapo/ntpaono tracnversbufferk.c#L1gets cesitually eturn edL15" ide=L15" class="line" namue=L15">  15 /a13L16" ide13L16" class="line" namue13L16"13 16 /a> spao class="comment"> @nr:aaanumbcr of bytef="drivernversbufferk.c#L1is eturn edL15" ide=L15" class="line" namue=L15">  15 /a13tty/n_tr13cesink.c#L2" 6alue="23113tion13  
  
  
   *  bu9ABILITY or FITNESS FOR 3A PARTIC13LAR PURRCHANTABILa href13"dri13rs/tty/n_tracesink.c#L5" ide=LByldefault ifk".eflspanot L13"eoundea,citceturn s -EIO.="line" namue=L13">  13 /a> spao class="commennt"> *  14t under the terms of th14 GNU14eneral Public License verstful /spashoulacnot be L13"eoundea,ccesr,abecause 201.2 *  as publ14shed14y the Free Software Foundapti 1._k.ef="="lina hreuners/t fa=ANke tL/tty/n_via 201.2 spao class="comment">   h/tty/n_trac_recebu9buf() 201.2 *  Th4racesink.c - Trace data14d in14he hope that it will be useful2. No writdsytoeHW ide=Lcesr go2" ide=L2".ef=lNTA="drcpANTA=ref="d.="line" namue=L13">  13 /a> spao class="commennt"> *  buut WITHOUT ANY WARRANTY;  wit14ut even the implied warranty  Howcesr,atr error eturn a acpt ok.cr .c#t -EIO,shoulac12" cld="line" namue=L13">  13 /a> spao class="commenent"> * 14MERCHANTABILITY or FITN14SS F14 A PARTICULAR PURPOSE.  See thjust to showk.c#L1k.cre was_tr invn>	anot to have k.ef=euners/t="line" namue=L13">  13 /a> spao class="commen spao cl14ss="comment"> *  GNU Ge14eral14">   5 /a> spao class="commentL13"eoundea. oRturn a acpt bacldron writd(),mspapage#L15" ide=L15" class="line" namue=L15">  15 /a>4L16" ide14L16" class="line" namue14L16"14~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /spaon> *  15t under the terms of th15 GNU15eneral Public License verstio/15" ide=L15" class="line" namue=L15">  15 /a1espao cla15s="comment"> *  as publ15shed15y theselect =search" ic="e=ssize_	 ssize_	 
  "=search" ic="e=/tty/n_trac_writdookup"  vaf=f">/tty/n_trac_writd16 /(rivuct==search" ic="e= ty_rivuctookup"  vaf=f"> ty_rivuct 
  "*=search" ic="e= tyookup"  vaf=f"> ty 
  , rivuct==search" ic="e=	 
 ookup"  vaf=f">	 
  
  "*=search" ic="e=	 
 ookup"  vaf=f">	 
  
  ,=L15" class="line" namue=L15">  15 /a1ek.c#L1" 15ide=L1" class="line" na15L11"152 
  "	 
    "	 
    "	 
             const unsign hrchar=*=search" ic="e=bufookup"  vaf=f">buf 
  , =search" ic="e=size_	 size_	 
  "=search" ic="e=/rookup"  vaf=f">nr16 /) {=L15" class="line" namue=L15">  15 /a1e> *  n_t15racesink.c - Trace data15d in153 
  "	 
    eturn a-=search" ic="e=EINVALookup"  vaf=f">EINVALpa /;=L15" class="line" namue=L15">  15 /a1ek.c#L3" 15ide=L3" class="line" na15 wit15ut ev}=L15" class="line" namue=L15">  15 /a1ee" namue1==L4">   4 /a> spao clas1sSS F15 A PA=L15" class="line" namue=L15">  15 /a1e spao cl15ss="comment"> *  GNU Ge15eral15ublic License for more deta47l 201.2 spao class="comment"> /tty/n_trac_nverdrain(),- Kernel API=euners/t  cldrtoestty/ 201.2   7 /a> spao class="comment"tttttttttttttttttttttttttty/n_ldebugg fa=iverstoe clr-d_fNTAd="line" namue=L13">  13 /a> spao class="comme5A PARTIC15LAR PURRCHANTABILa href15"dri15rs/tty/n_tracesink.c#L5" ide=LhhhhhhhhhhhhhhhhhhhhhhhhhhportrANke USBL15" ide=L15" class="line" namue=L15">  15 /a16nt"> *  16t under the terms of th16 GNU16eneral Public License verst~~~~~~~ /spaon> *  as publ16shed16y the Free Software Foundapti @buf:aaref="driebug fa=iversbufferk.o writdono tty h">"
	~~~~~ /spaon> spao class="comment"> hhhhhhhhport. Nue=L acpt ide=Leturn aty/n_no writdooccurveng.~~~~~ /spaon>   4 /a> spao clas16SS F16 A PARTICULAR PURPOSE.  See t~~~~~ /spaon> *  GNU Geneeral16">   5 /a> spao class="commentCaveat: If2".ef=lNTA="drcipANTA=roepanot seton> spao class="comment"> /batopass_viahspaopen(),rall,2".ef=API=euners/t ide=Lnot="line" namue=L13">  13 /a> spao class="comm16tty/n_tr16cesink.c#L2" 6alue="23116tion16">   7 /a> spao class="commentrallon> >  13 /a> spao class="co1mm6A 1ARTIC6LAR PURRCHANTABILa href6"alleon16">  o class 
    eturn aty/n_no writdooccureng.~~~~~ /spa0" class=1"line" namue=L10">  .10<1a>7nt1> *  7t under the terms of th7 GNU15eneral Public License verstio/15" ide=L10" class=1"line" namue=L10">  .10<1a>7sp1o cla7the terms of the  GNUe  16 /sele spao cla  "=search" ic="e=/tty/n_tr spao clak=L1_pu	 __ clr 
  "*=searchclass="line" na7erain16r7NTABIschclass="line" na7erain16r7NTABIclass="line" na7erain16r7NTABIschclass="lilass="line" namue13L16"13 16 /a> sph>
  
    .10<1a>7sp1o cla7the " class="1line" na8eral 86 
  "	 
1    "1 
    ne" namue=L10">  .10<1a>7sp1o cla7the "ass="line~~~~~~~~8L16">87 
  "	 
1    "18ss="comment"> /batopass_via  15 /a4k.c#L3" iide=L31RRCHANTAB1ILa href8"driv89 
  "	 
1    =18e it and/or m/15" ide=L15" class="line" namue=L15">  15 /a10nt"> *  itt undr the ter1ms of th9 GNU 9016 /=L151" cla19==search" icic="e= ty_rivuctookup"  vaL15" _ops.ef_ ty 
   ===  vaL15" _ops="e=/rookup"  vaf=f"  va0nt"> *  it.ef_ ty 
   ===  va0nt"> *  it="e=/=ine" namue=L15">  15 /a1e> *  n_t15racesment"> * 1 as publ9shed 91 
  "	 
1    e1urn a=search" .drc_iverookup" own>__ clr 
  "*=seaown>_    "	 
    =s=NULLookup"  vaf=THIS_MODULE_ clr 
  "*=seaTHIS_MODULE="line" namue=L15">  15 /a1ek.c#L1" 15ide=L" class="1line" na9L11">92 
  }=L115" cl192n a=search" .drc_iverookup" magicute 
un  ck16 /(agic    "	 
    =s=NULLookup"  vaf=TTY_LDISC_MAGIC_ clr 
  "*=seaTTY_LDISC_MAGIC="line" namue=L15">  15 /a1ek.c#L1" 15ide=L"href8"earace data9d in 9316 /=L151" cla193n a=search" .drc_iverookup" 6 /= vaf=u8  "=searc /=    "	 
    =se=NULLookup"  vaf=  vaf=f">DRIVERNAME 
  "	 
  en the impne" namue=L15">  15 /a1ek.c#L1" 15ide=L" class="1line" na9 with9ut even t1he im194n a=search" .drc_iverookup" o">/tty/n_trac_open=search""	 
    =se=NULLookup"  vaf=ch" ic=u8" if">/tty/n_trac_open16 /(rivuct==search"ne" namue=L15">  15 /a1ek.c#L1" 15ide=L" 4 /a> s1pao clas9SS FO9 A PARTIC1ULAR 195n a=search" .drc_iverookup" =f">/tty/n_trac_dlos==search"	 
    =se=NULLookup"  vaf=ch" ic=u8" i=f">/tty/n_trac_dlose16 /(rivuct==search"ne" namue=L15">  15 /a1ek.c#L1" 15ide=L" class="1line" na9eral 9">   5 /a1> spa196n a=search" .drc_iverookup" f">/tty/n_trac_read=search""	 
    =se=NULLookup"  vaf=ch" ic=u8" if">/tty/n_trac_read16 /(rivuct==search"ne" namue=L15">  15 /a1ek.c#L1" 15ide=L"ass="line~~~~~~~~9L16">9~~~~~~~~~1~~~~~197n a=search" .drc_iverookup" =f">/tty/n_trac_writ==search"	 
    =se=NULLookup"  vaf=ch" ic=u8" i=f">/tty/n_trac_writd16 /(rivuct==search"e" namue=L15">  15 /a1ek.c#L1" 15ide=L"c#L2" 6alline" na9tion 9">   7 /a1> spa1 class}ne" namue=L15">  15 /a10tty/n_tra0cesinm is free1 software"driv9 cao redi1strib19="line" namue=L15">  15 /a1ent"> *  iit un2er the te2ms of the  GNUe  16 /sel2ct vo20cense verst47l 201.2 *2 as publi01GNUe 1A PA{=L25" cl20are Foundaptih/tty/n_trac_read(),- read recea - =se/t fa=ANea ialisae=L13">  13 /a> spao class="commen spao cl14ss="2class="li2e" namue=02GNUe 2 
  "	 2    =20ss="comment"> hhhhhhhhport. N3">  13 /a> spao class="commen spao cl14ss="2cram is diistribute03GNUe 3 
  "	 2    =20through tty s @count: Size of Regis=L1s ide=L/t fa=A to =ref="db617c43_3/0"n  15 /a2 spao cl2ss="comTHOUT ANY2WARRANTY;04GNUe 4 
  "	 2    =20ied warranty o"	 
    eturn ass="line" namue=L15">  15 /a2 spao cl2ss="comT5OUT ANY2Wao clas9SS FO9 A PARTIC2    =20RPOSE.  See thjust to showk.c#aon> 2  GNU Gen06GNUe 6 
  "	 2    =20class="commentttttt-EFAULT = /dulanine" namue=L12 any,shoula aty/npt okass="line" namue=L15">  15 /a2 spao cl2ss="comTass="linee" namue=07GNUe 7 
  "	 2    =20ss="comment"> /batopass_viahsass="line" namue=L15">  15 /a2L16" ide2L16" clk.c#L2" 62lue="231908GNUe 8 
  }=L25" cl20rch" ic="e=Dain16r7NTABIclass="_ecea tty/n_trac_writ_ecea ="e=/tty/n_trac_writdookup"  vafcea tty/n_trac_writdookup"  vafcea rch" " icss="lilass="line" namue13L16"13 16 /a>2URRCHANTA2ILa href=09GNUe 916 /=L12" cla2s="linne" namue=L15">  15 /a1e> *  n_t15race2er the te2ms of thee GNU1General P2blic 21
    =search" verst47l 201.2  15 /a2L16" ide2L16" clmment"> *2 as publis1GNUeby the Fr2e Sof21rn a=search" "e=retvalookup"  vaf=f">retval 
  "= -=search" ic="e=rookup"  vaf=f"  varegis=L1aL15" .ef_ ty 
   ===  varegis=L1aL15" rch" .ef_ tyookup"  N_TRACESINKULL16 /) {=L15" _TRACESINKc="e=s="e=writdlockookup"   va0nt"> *  it.ef_ ty 
   ===  va0nt"> *  it="e=ine" namue=L15">  15 /a10tty/n_tra0cesi2class="li2e" namue==L11"1  11 /a> 2pao c2ass="ce" namue=L15">  15 /a10tty/n_tra0cesi2cram is diistributeed in1the hope 2hat i213n a=search" "e= .ef_ tyookup"  f=f">retval 
  "= -=search" ic="lude 0ss="lilass="line" namue13L16"13 16 /a>2THOUT ANY2WARRANTY;; wit1out even 2he im21
    "	 
    =search".ef_ tyookup"  pr_pt etval 
  "= -=spr_pt rch" .verst47l 201=L15">  1"%s: Regis=r" cla failed: %d\n5" class="lin=size_	 retval 
  "= -=search" ic=ine" namue=L15">  15 /a10tty/n_tra0cesi2c5OUT ANY2 or FITNEESS F1R A PARTI2ULAR 21="line" namue=L15">  15 /a1e spao cl15ss="2omment"> 2  GNU Genneral1Public Li2ense 216n a=search" ic="e=retvalookup"  vaf=f">retval 
  ;=L15" class="line" namue=L15">  15 /a9k.c#L1" 9ide=L12class="li2e" namue==L16"1  16 /a> 2pao c2ass="cne" namue=L15">  15 /a1ee" namue1==L4"2k.c#L2" 62lue="23199tion1e  
  
  2    15 /a1ee" namue1==L4"2kRRCHANTA2ILa href=="dri1ers/tty/n2trace2ink.c#L5" ide=L/tty/n_viah/t  13 /a> spao class="comme5A PARTIC15LAR 2ment"> *   as publ2shed 2y the Freee Sof2ware Foundapti -EIO,shoulac12"3">  13 /a> spao class="comme5A PARTIC15LAR 2m class="liine" namL11">2 11 /a> spaao c2ass="comment"> k.ef=euners/t L1Removes ide=L/t fa=A to =ref="db617c43_3/0"n  15 /a2 spao cl2ss="comgram is diistribut2d in 2he hope thhat i2 will be usefu15" ide=L15" claass="line" namue=L15">  15 /a2L16" ide2L16" clHOUT ANY WWARRANTY2 with2ut even thhe im22=search" ic=" ic="e=/tty/n_tr sp_fexittty/n_trac_writ_eexit="e=/tty/n_trac_writdookup"  vafexittty/n_trac_writdookup"  vafexitrch" " icss="lilass="line" namue13L16"13 16 /a>2NTABILITY  or FITN2SS FO2 A PARTICUULAR 22s="line" namue=L15">  15 /a7k.c#L5" 7ide=L52mment"> *   GNU Ge2eral 2ublic Liceense 22==search" ic="e=retvalookup"  vaf=f">retval 
  "= -=search" ic="e=ritdlockookup"   vaunregis=L1aL15" .ef_ ty 
   ===  vaunregis=L1aL15" rch" .ef_ tyookup"  N_TRACESINKULL16 /) {=L15" _TRACESINKc="eine" namue=L15">  15 /a10tty/n_tra0cesi2lass="linee" namue2L16">2 16 /=L15"ct =s2s="line" namue=L15">  15 /a2tty/n_tr2cesink..c#L2" 6allue="2312tion 2  
  #incl     2              "e= .ef_ tyookup"  f=f">retval 
  "= -=search" ic="lude 0ss="lilass="line" namue13L16"13 16 /a>2RRCHANTABIILa href2"driv29 
  #incl    e2urn a-=search"=search".ef_ tyookup"  pr_pt etval 
  "= -=spr_pt rch" .verst47l 201=L15">  1"%s: Unregis=r" cla failed: %d\n5" class="lin=size_	 retval 
  "= -=search" ic=ine" namue=L15">  15 /a10tty/n_tra0cesi2er the te2ms of th13 GNU130 
  }=L25" cl2ss="line" namue=L15">  15 /a13spao cla13s="c2mment"> *2 as publ13shed131 
  =L12" cla2s="line" namue=L15">  15 /a13L11" ide=3ide=21" class=2line" na13L11"13 11 /a> 2pao c2ass="corc_iverookup" mt fa=fcea tty/n_trac_writmt fa=fcea rch" .ef_ tyookup"  ao clak=L1_pcea tty/n_trac_writdookup"  vafcea rch"ine" namue=L15">  15 /a10tty/n_tra0cesi2eram is diistributedd in13he hope 2hat i2 will brc_iverookup" mt fa=fexittty/n_trac_writmt fa=fexitrch" .ef_ tyookup"  ao clak=L1_pexittty/n_trac_writdookup"  vafexitrch"ine" namue=L15">  15 /a10tty/n_tra0cesi2eOUT ANY WWARRANTY13 wit13ut even 2he im23=seare" namue=L15">  15 /a10t"> *  Th0is p2ANTABILIT2 or FITN13SS F13 A PARTI2ULAR 2URPOSE.ef_ tyookup"  MODULE_LICENSDRIVERNAME 
  "	MODULE_LICENSDrch" .verst47l 201=L15">  1"GPL5" class="linine" namue=L15">  15 /a10tty/n_tra0cesi2ement"> *   GNU Ge13eral13">   5 /2> spa2 class=ef_ tyookup"  MODULE_AUTHORRIVERNAME 
  "	MODULE_AUTHORrch" .verst47l 201=L15">  1"Jay Freyensee5" class="linine" namue=L15">  15 /a10tty/n_tra0cesi2eass="linee" namue13L16"13 16 /a> 2pao c2ass="coef_ tyookup"  MODULE_ALIAS_LDISCRIVERNAME 
  "	MODULE_ALIAS_LDISCrch" .ef_ tyookup"  N_TRACESINKULL16 /) {=L15" _TRACESINKc="eine" namue=L15">  15 /a10tty/n_tra0cesi2k.c#L2" 62lue="23113tion13  
  
  2    1"versbutra0cl 65536 whic5" class="linine" namue=L15">  15 /a10tty/n_tra0cesi2eRCHANTABIILa href13"dri13rs/tty/n2trace2ink.c#L/pre#L/div>


L/div>

The origtty/nLXR=wandsytoebyritd(" namue=Lhttp://sourcul oge.net/neinpats/lx1">LXR=de=Luea ic="=side=LexperiL15"y/n> 1cla byr" namue=Lmailto:lx1@l =L.no">lx1@l =L.noic=". L/div>
lx1.l =L.no kindly hostyL15" " namue=Lhttp://www.redpill-l nei.no">Redpill L nei ASic="=sneividvernveL =Lchar=ult.o wsialf=Ar" clasLseretrasutrasbu1995. L/div>