예전에 Kernel 2.6.24.3을 보다가,,이번에 Kernel 2.6.29.6을 보았는데요.
ip_gre module에 아래와 같은 내용이 있습니다.
struct net *net = dev_net(dev);
예전에는 "struct net"이라는 구조체를 보지 못했던 것 같아서요. 관련된 정보가 없을까해서 google을 사용해서 열심히 검색을 하고는 있는데, 아직 찾은 것이 없네요.
조언을 주시면 감사하겠습니다.
net 라는 구조체는 include/net/net_namespace.h 파일의 30번째 줄에 있네요.
웹상에서 보려면 http://lxr.linux.no/linux+v2.6.29.6/include/net/net_namespace.h#L30 이곳으로 가시면 됩니다.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
net 라는 구조체는
net 라는 구조체는 include/net/net_namespace.h 파일의 30번째 줄에 있네요.
웹상에서 보려면 http://lxr.linux.no/linux+v2.6.29.6/include/net/net_namespace.h#L30 이곳으로 가시면 됩니다.
댓글 달기