Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Sep 2005 23:08:04 +0000 (UTC)
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net bpf.c bpfdesc.h
Message-ID:  <200509052308.j85N84u5025705@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
csjp        2005-09-05 23:08:04 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bpf.c bpfdesc.h 
  Log:
  Instead of caching the PID which opened the bpf descriptor, continuously
  refresh the PID which has the descriptor open. The PID is refreshed in various
  operations like ioctl(2), kevent(2) or poll(2). This produces more accurate
  information about current bpf consumers. While we are here remove the bd_pcomm
  member of the bpf stats structure because now that we have an accurate PID we
  can lookup the via the kern.proc.pid sysctl variable. This is the trick that
  NetBSD decided to use to deal with this issue.
  
  Special care needs to be taken when MFC'ing this change, as we have made a
  change to the bpf stats structure. What will end up happening is we will leave
  the pcomm structure but just mark it as being un-used. This way we keep the ABI
  in tact.
  
  MFC after:      1 month
  Discussed with: Rui Paulo < rpaulo at NetBSD dot org >
  
  Revision  Changes    Path
  1.159     +12 -2     src/sys/net/bpf.c
  1.32      +0 -2      src/sys/net/bpfdesc.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509052308.j85N84u5025705>