Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/yamt-lazymbuf]: src/sys sync with head.



details:   https://anonhg.NetBSD.org/src/rev/2e1c86d7abd6
branches:  yamt-lazymbuf
changeset: 582752:2e1c86d7abd6
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon Sep 03 14:41:57 2007 +0000

description:
sync with head.

diffstat:

 sys/miscfs/procfs/procfs_vnops.c                    |    65 +-
 sys/miscfs/specfs/spec_vnops.c                      |   204 +-
 sys/miscfs/specfs/specdev.h                         |     5 +-
 sys/miscfs/syncfs/sync_subr.c                       |    21 +-
 sys/miscfs/syncfs/sync_vnops.c                      |     9 +-
 sys/miscfs/umapfs/umap_subr.c                       |     6 +-
 sys/miscfs/umapfs/umap_vfsops.c                     |    84 +-
 sys/net/agr/ieee8023ad_lacp.c                       |    23 +-
 sys/net/agr/if_agr.c                                |   103 +-
 sys/net/agr/if_agrether.c                           |    10 +-
 sys/net/agr/if_agrether_hash.c                      |     8 +-
 sys/net/agr/if_agrsubr.c                            |    36 +-
 sys/net/agr/if_agrtimer.c                           |    11 +-
 sys/net/agr/if_agrvar_impl.h                        |    20 +-
 sys/net/bpf.c                                       |    54 +-
 sys/net/bpfdesc.h                                   |    10 +-
 sys/net/bridgestp.c                                 |    32 +-
 sys/net/if.c                                        |   517 +++---
 sys/net/if.h                                        |    38 +-
 sys/net/if_arcsubr.c                                |    10 +-
 sys/net/if_arp.h                                    |    12 +-
 sys/net/if_atmsubr.c                                |     8 +-
 sys/net/if_bridge.c                                 |    30 +-
 sys/net/if_bridgevar.h                              |    10 +-
 sys/net/if_dl.h                                     |    21 +-
 sys/net/if_ecosubr.c                                |    28 +-
 sys/net/if_ether.h                                  |     4 +-
 sys/net/if_etherip.c                                |    35 +-
 sys/net/if_etherip.h                                |     8 +-
 sys/net/if_ethersubr.c                              |    60 +-
 sys/net/if_faith.c                                  |     8 +-
 sys/net/if_fddi.h                                   |     6 +-
 sys/net/if_fddisubr.c                               |    36 +-
 sys/net/if_gif.c                                    |    72 +-
 sys/net/if_gif.h                                    |    12 +-
 sys/net/if_gre.c                                    |   807 ++++++------
 sys/net/if_gre.h                                    |    31 +-
 sys/net/if_hippi.h                                  |     4 +-
 sys/net/if_hippisubr.c                              |    23 +-
 sys/net/if_ieee1394.h                               |     4 +-
 sys/net/if_ieee1394subr.c                           |    21 +-
 sys/net/if_loop.c                                   |     8 +-
 sys/net/if_media.c                                  |    12 +-
 sys/net/if_ppp.c                                    |    51 +-
 sys/net/if_pppoe.c                                  |    44 +-
 sys/net/if_pppoe.h                                  |     9 +-
 sys/net/if_pppvar.h                                 |     6 +-
 sys/net/if_sl.c                                     |    61 +-
 sys/net/if_slvar.h                                  |     4 +-
 sys/net/if_spppsubr.c                               |    52 +-
 sys/net/if_srt.c                                    |     6 +-
 sys/net/if_stf.c                                    |    53 +-
 sys/net/if_strip.c                                  |    83 +-
 sys/net/if_stripvar.h                               |     4 +-
 sys/net/if_tap.c                                    |    64 +-
 sys/net/if_token.h                                  |     6 +-
 sys/net/if_tokensubr.c                              |    47 +-
 sys/net/if_tun.c                                    |    28 +-
 sys/net/if_vlan.c                                   |    30 +-
 sys/net/link_proto.c                                |   237 +++
 sys/net/net_osdep.h                                 |     4 +-
 sys/net/netisr.h                                    |    24 +-
 sys/net/netisr_dispatch.h                           |    11 +-
 sys/net/ppp_tty.c                                   |    14 +-
 sys/net/radix.c                                     |   184 +-
 sys/net/radix.h                                     |     5 +-
 sys/net/raw_cb.c                                    |     6 +-
 sys/net/raw_usrreq.c                                |    58 +-
 sys/net/route.c                                     |   412 ++++-
 sys/net/route.h                                     |   128 +-
 sys/net/rtsock.c                                    |   269 +--
 sys/net/slcompress.c                                |     6 +-
 sys/net80211/ieee80211_input.c                      |    16 +-
 sys/net80211/ieee80211_ioctl.c                      |    39 +-
 sys/net80211/ieee80211_netbsd.c                     |    15 +-
 sys/net80211/ieee80211_netbsd.h                     |     4 +-
 sys/net80211/ieee80211_output.c                     |     8 +-
 sys/net80211/ieee80211_radiotap.h                   |    38 +-
 sys/net80211/ieee80211_var.h                        |    10 +-
 sys/netatalk/aarp.c                                 |    31 +-
 sys/netatalk/at_control.c                           |    86 +-
 sys/netatalk/at_extern.h                            |     4 +-
 sys/netatalk/at_proto.c                             |    33 +-
 sys/netatalk/at_var.h                               |    36 +-
 sys/netatalk/ddp_input.c                            |    39 +-
 sys/netatalk/ddp_usrreq.c                           |    95 +-
 sys/netbt/bluetooth.h                               |     3 +-
 sys/netbt/bt_proto.c                                |    84 +-
 sys/netbt/hci.h                                     |    24 +-
 sys/netbt/hci_event.c                               |   178 ++-
 sys/netbt/hci_link.c                                |   213 ++-
 sys/netbt/hci_socket.c                              |    68 +-
 sys/netbt/hci_unit.c                                |    22 +-
 sys/netbt/l2cap.h                                   |    44 +-
 sys/netbt/l2cap_lower.c                             |    15 +-
 sys/netbt/l2cap_misc.c                              |    39 +-
 sys/netbt/l2cap_signal.c                            |   126 +-
 sys/netbt/l2cap_socket.c                            |    53 +-
 sys/netbt/l2cap_upper.c                             |   115 +-
 sys/netbt/rfcomm.h                                  |    23 +-
 sys/netbt/rfcomm_dlc.c                              |   108 +-
 sys/netbt/rfcomm_session.c                          |   200 ++-
 sys/netbt/rfcomm_socket.c                           |    64 +-
 sys/netbt/rfcomm_upper.c                            |    62 +-
 sys/netbt/sco_socket.c                              |    35 +-
 sys/netbt/sco_upper.c                               |    13 +-
 sys/netinet/Makefile                                |     3 +-
 sys/netinet/files.netinet                           |     4 +-
 sys/netinet/if_arp.c                                |   281 ++-
 sys/netinet/if_atm.c                                |    57 +-
 sys/netinet/if_inarp.h                              |     4 +-
 sys/netinet/igmp.c                                  |    10 +-
 sys/netinet/in.c                                    |   106 +-
 sys/netinet/in.h                                    |    38 +-
 sys/netinet/in4_cksum.c                             |     6 +-
 sys/netinet/in_gif.c                                |    30 +-
 sys/netinet/in_offload.c                            |     8 +-
 sys/netinet/in_offload.h                            |     4 +-
 sys/netinet/in_pcb.c                                |    75 +-
 sys/netinet/in_pcb_hdr.h                            |     4 +-
 sys/netinet/in_proto.c                              |   330 +++-
 sys/netinet/in_route.c                              |   143 --
 sys/netinet/in_route.h                              |    42 -
 sys/netinet/in_var.h                                |     6 +-
 sys/netinet/ip6.h                                   |    10 +-
 sys/netinet/ip_carp.c                               |    86 +-
 sys/netinet/ip_encap.c                              |    24 +-
 sys/netinet/ip_etherip.c                            |    28 +-
 sys/netinet/ip_flow.c                               |   107 +-
 sys/netinet/ip_gre.c                                |    12 +-
 sys/netinet/ip_icmp.c                               |    25 +-
 sys/netinet/ip_input.c                              |   164 +-
 sys/netinet/ip_mroute.c                             |   101 +-
 sys/netinet/ip_mroute.h                             |     6 +-
 sys/netinet/ip_output.c                             |   144 +-
 sys/netinet/ip_var.h                                |     7 +-
 sys/netinet/raw_ip.c                                |    78 +-
 sys/netinet/tcp.h                                   |    21 +-
 sys/netinet/tcp_congctl.c                           |    14 +-
 sys/netinet/tcp_debug.c                             |    20 +-
 sys/netinet/tcp_debug.h                             |     4 +-
 sys/netinet/tcp_input.c                             |   154 +-
 sys/netinet/tcp_output.c                            |    74 +-
 sys/netinet/tcp_sack.c                              |     6 +-
 sys/netinet/tcp_subr.c                              |    90 +-
 sys/netinet/tcp_timer.c                             |    30 +-
 sys/netinet/tcp_timer.h                             |    10 +-
 sys/netinet/tcp_usrreq.c                            |   415 +++++-
 sys/netinet/tcp_var.h                               |    46 +-
 sys/netinet/udp_usrreq.c                            |    40 +-
 sys/netinet6/ah_aesxcbcmac.c                        |    20 +-
 sys/netinet6/ah_core.c                              |   217 +--
 sys/netinet6/ah_input.c                             |    49 +-
 sys/netinet6/ah_output.c                            |    24 +-
 sys/netinet6/esp_aesctr.c                           |    19 +-
 sys/netinet6/esp_core.c                             |    49 +-
 sys/netinet6/esp_input.c                            |    41 +-
 sys/netinet6/esp_output.c                           |    26 +-
 sys/netinet6/files.netinet6                         |     3 +-
 sys/netinet6/frag6.c                                |    50 +-
 sys/netinet6/icmp6.c                                |   120 +-
 sys/netinet6/in6.c                                  |   157 +-
 sys/netinet6/in6.h                                  |    53 +-
 sys/netinet6/in6_cksum.c                            |     9 +-
 sys/netinet6/in6_gif.c                              |    82 +-
 sys/netinet6/in6_ifattach.c                         |    89 +-
 sys/netinet6/in6_offload.c                          |     8 +-
 sys/netinet6/in6_offload.h                          |     4 +-
 sys/netinet6/in6_pcb.c                              |   152 +-
 sys/netinet6/in6_pcb.h                              |     4 +-
 sys/netinet6/in6_proto.c                            |   346 ++--
 sys/netinet6/in6_src.c                              |   133 +-
 sys/netinet6/in6_var.h                              |   171 +-
 sys/netinet6/ip6_etherip.c                          |    36 +-
 sys/netinet6/ip6_flow.c                             |   522 +++++++
 sys/netinet6/ip6_forward.c                          |    50 +-
 sys/netinet6/ip6_input.c                            |   263 ++-
 sys/netinet6/ip6_mroute.c                           |   114 +-
 sys/netinet6/ip6_mroute.h                           |     5 +-
 sys/netinet6/ip6_output.c                           |   221 +-
 sys/netinet6/ip6_var.h                              |    47 +-
 sys/netinet6/ip6protosw.h                           |     5 +-
 sys/netinet6/ipcomp_core.c                          |    27 +-
 sys/netinet6/ipcomp_input.c                         |    12 +-
 sys/netinet6/ipcomp_output.c                        |    23 +-
 sys/netinet6/ipsec.c                                |   384 ++---
 sys/netinet6/ipsec.h                                |    12 +-
 sys/netinet6/mld6.c                                 |    81 +-
 sys/netinet6/nd6.c                                  |   420 +++---
 sys/netinet6/nd6.h                                  |   104 +-
 sys/netinet6/nd6_nbr.c                              |   186 +-
 sys/netinet6/nd6_rtr.c                              |   126 +-
 sys/netinet6/raw_ip6.c                              |    42 +-
 sys/netinet6/route6.c                               |    40 +-
 sys/netinet6/udp6_output.c                          |    13 +-
 sys/netinet6/udp6_usrreq.c                          |    10 +-
 sys/netipsec/ipsec.c                                |   286 +--
 sys/netipsec/ipsec.h                                |    14 +-
 sys/netipsec/ipsec6.h                               |     6 +-
 sys/netipsec/ipsec_input.c                          |    59 +-
 sys/netipsec/ipsec_mbuf.c                           |    42 +-
 sys/netipsec/ipsec_netbsd.c                         |   158 +-
 sys/netipsec/ipsec_output.c                         |    76 +-
 sys/netipsec/key.c                                  |  1247 +++++++++++-------
 sys/netipsec/key.h                                  |    73 +-
 sys/netipsec/key_debug.c                            |   113 +-
 sys/netipsec/key_debug.h                            |    24 +-
 sys/netipsec/keydb.h                                |    35 +-
 sys/netipsec/keysock.c                              |    38 +-
 sys/netipsec/keysock.h                              |    16 +-
 sys/netipsec/xform.h                                |     4 +-
 sys/netipsec/xform_ah.c                             |    77 +-
 sys/netipsec/xform_esp.c                            |    47 +-
 sys/netipsec/xform_ipcomp.c                         |    35 +-
 sys/netipsec/xform_ipip.c                           |    14 +-
 sys/netisdn/i4b_ctl.c                               |     8 +-
 sys/netisdn/i4b_i4bdrv.c                            |    18 +-
 sys/netisdn/i4b_ipr.c                               |    14 +-
 sys/netisdn/i4b_isppp.c                             |     8 +-
 sys/netisdn/i4b_isppp.h                             |     6 +-
 sys/netisdn/i4b_l1l2.h                              |     4 +-
 sys/netisdn/i4b_l2.c                                |    16 +-
 sys/netisdn/i4b_l2.h                                |     6 +-
 sys/netisdn/i4b_l4mgmt.c                            |    22 +-
 sys/netisdn/i4b_rbch.c                              |    26 +-
 sys/netisdn/i4b_tel.c                               |    38 +-
 sys/netisdn/i4b_trace.c                             |    12 +-
 sys/netiso/clnp.h                                   |    37 +-
 sys/netiso/clnp_er.c                                |    30 +-
 sys/netiso/clnp_frag.c                              |    26 +-
 sys/netiso/clnp_input.c                             |    48 +-
 sys/netiso/clnp_options.c                           |    21 +-
 sys/netiso/clnp_output.c                            |    24 +-
 sys/netiso/clnp_raw.c                               |    12 +-
 sys/netiso/clnp_subr.c                              |   138 +-
 sys/netiso/cltp_usrreq.c                            |    18 +-
 sys/netiso/eonvar.h                                 |     6 +-
 sys/netiso/esis.c                                   |    77 +-
 sys/netiso/esis.h                                   |     4 +-
 sys/netiso/idrp_usrreq.c                            |    16 +-
 sys/netiso/if_eon.c                                 |    65 +-
 sys/netiso/iso.c                                    |    40 +-
 sys/netiso/iso.h                                    |    63 +-
 sys/netiso/iso_chksum.c                             |     8 +-
 sys/netiso/iso_pcb.c                                |    22 +-
 sys/netiso/iso_pcb.h                                |    13 +-
 sys/netiso/iso_proto.c                              |    33 +-
 sys/netiso/iso_snpac.c                              |    68 +-
 sys/netiso/iso_var.h                                |    20 +-
 sys/netiso/tp_cons.c                                |    20 +-
 sys/netiso/tp_emit.c                                |    24 +-
 sys/netiso/tp_inet.c                                |    22 +-
 sys/netiso/tp_input.c                               |    82 +-
 sys/netiso/tp_iso.c                                 |    22 +-
 sys/netiso/tp_meas.c                                |     6 +-
 sys/netiso/tp_output.c                              |    20 +-
 sys/netiso/tp_param.h                               |    12 +-
 sys/netiso/tp_pcb.c                                 |    40 +-
 sys/netiso/tp_pcb.h                                 |    12 +-
 sys/netiso/tp_subr.c                                |    10 +-
 sys/netiso/tp_subr2.c                               |    16 +-
 sys/netiso/tp_timer.c                               |     6 +-
 sys/netiso/tp_trace.c                               |    18 +-
 sys/netiso/tp_usrreq.c                              |     8 +-
 sys/netiso/tp_var.h                                 |    14 +-
 sys/netkey/key.c                                    |   118 +-
 sys/netkey/key.h                                    |     4 +-
 sys/netkey/key_debug.c                              |    40 +-
 sys/netkey/key_debug.h                              |     6 +-
 sys/netkey/keydb.h                                  |    10 +-
 sys/netkey/keysock.c                                |    10 +-
 sys/netnatm/natm.c                                  |    12 +-
 sys/netnatm/natm_proto.c                            |     5 +-
 sys/netsmb/mchain.h                                 |     4 +-
 sys/netsmb/smb_dev.c                                |     6 +-
 sys/netsmb/smb_iod.c                                |    14 +-
 sys/netsmb/smb_rq.c                                 |    12 +-
 sys/netsmb/smb_smb.c                                |    12 +-
 sys/netsmb/smb_trantcp.c                            |    35 +-
 sys/netsmb/smb_usr.c                                |     6 +-
 sys/netsmb/subr_mchain.c                            |    37 +-
 sys/nfs/krpc_subr.c                                 |     8 +-
 sys/nfs/nfs.h                                       |    37 +-
 sys/nfs/nfs_bio.c                                   |   196 +-
 sys/nfs/nfs_boot.c                                  |    80 +-
 sys/nfs/nfs_bootdhcp.c                              |    29 +-
 sys/nfs/nfs_bootparam.c                             |    10 +-
 sys/nfs/nfs_bootstatic.c                            |     9 +-
 sys/nfs/nfs_export.c                                |    45 +-
 sys/nfs/nfs_kq.c                                    |    63 +-
 sys/nfs/nfs_node.c                                  |    17 +-
 sys/nfs/nfs_serv.c                                  |   240 +--
 sys/nfs/nfs_socket.c                                |   391 +++--
 sys/nfs/nfs_srvcache.c                              |    66 +-
 sys/nfs/nfs_subs.c                                  |   134 +-
 sys/nfs/nfs_syscalls.c                              |   400 +++--
 sys/nfs/nfs_var.h                                   |    38 +-
 sys/nfs/nfs_vfsops.c                                |   139 +-
 sys/nfs/nfs_vnops.c                                 |   166 +-
 sys/nfs/nfsdiskless.h                               |     7 +-
 sys/nfs/nfsm_subs.h                                 |    24 +-
 sys/nfs/nfsmount.h                                  |    30 +-
 sys/nfs/nfsnode.h                                   |    21 +-
 sys/nfs/nfsrvcache.h                                |     3 +-
 sys/opencrypto/criov.c                              |    20 +-
 sys/opencrypto/crypto.c                             |    40 +-
 sys/opencrypto/cryptodev.c                          |    24 +-
 sys/opencrypto/cryptodev.h                          |    34 +-
 sys/opencrypto/cryptosoft.c                         |    30 +-
 sys/opencrypto/cryptosoft.h                         |     4 +-
 sys/opencrypto/cryptosoft_xform.c                   |    64 +-
 sys/opencrypto/deflate.c                            |    41 +-
 sys/rump/Makefile                                   |     6 +
 sys/rump/Makefile.rump                              |    26 +
 sys/rump/README.dirs                                |    25 +
 sys/rump/fs/Makefile                                |     6 +
 sys/rump/fs/Makefile.rumpfs                         |    30 +
 sys/rump/fs/bin/Makefile                            |     8 +
 sys/rump/fs/bin/Makefile.inc                        |    17 +
 sys/rump/fs/bin/cd9660fs/Makefile                   |     9 +
 sys/rump/fs/bin/cd9660fs/cd9660fs.c                 |    61 +
 sys/rump/fs/bin/efs/Makefile                        |     9 +
 sys/rump/fs/bin/efs/efs.c                           |    87 +
 sys/rump/fs/bin/ext2fs/Makefile                     |    11 +
 sys/rump/fs/bin/ext2fs/ext2fs.c                     |    87 +
 sys/rump/fs/bin/ffs/Makefile                        |    11 +
 sys/rump/fs/bin/ffs/ffs.c                           |   106 +
 sys/rump/fs/bin/fsconsole/Makefile                  |    14 +
 sys/rump/fs/bin/fsconsole/fsconsole.c               |   139 ++
 sys/rump/fs/bin/hfs/Makefile                        |     9 +
 sys/rump/fs/bin/hfs/hfs.c                           |    87 +
 sys/rump/fs/bin/lfs/Makefile                        |    11 +
 sys/rump/fs/bin/lfs/lfs.c                           |    87 +
 sys/rump/fs/bin/msdosfs/Makefile                    |     9 +
 sys/rump/fs/bin/msdosfs/msdosfs.c                   |    87 +
 sys/rump/fs/bin/ntfs/Makefile                       |     9 +
 sys/rump/fs/bin/ntfs/ntfs.c                         |    86 +
 sys/rump/fs/bin/tmpfs/Makefile                      |     9 +
 sys/rump/fs/bin/tmpfs/tmpfs.c                       |    87 +
 sys/rump/fs/bin/udf/Makefile                        |     9 +
 sys/rump/fs/bin/udf/udf.c                           |    88 +
 sys/rump/fs/lib/Makefile                            |     8 +
 sys/rump/fs/lib/Makefile.inc                        |    18 +
 sys/rump/fs/lib/libcd9660fs/Makefile                |    16 +
 sys/rump/fs/lib/libefs/Makefile                     |    13 +
 sys/rump/fs/lib/libext2fs/Makefile                  |    17 +
 sys/rump/fs/lib/libffs/Makefile                     |    18 +
 sys/rump/fs/lib/libhfs/Makefile                     |    15 +
 sys/rump/fs/lib/liblfs/Makefile                     |    17 +
 sys/rump/fs/lib/libmsdosfs/Makefile                 |    16 +
 sys/rump/fs/lib/libnfs/Makefile                     |    14 +
 sys/rump/fs/lib/libntfs/Makefile                    |    16 +
 sys/rump/fs/lib/libp2k/Makefile                     |    16 +
 sys/rump/fs/lib/libp2k/p2k.c                        |   657 ++++++++++
 sys/rump/fs/lib/libp2k/p2k.h                        |    42 +
 sys/rump/fs/lib/libtmpfs/Makefile                   |    14 +
 sys/rump/fs/lib/libudf/Makefile                     |    15 +
 sys/rump/fs/lib/libufs/Makefile                     |    16 +
 sys/rump/fs/lib/libufs/fs_ffs.h                     |     3 +
 sys/rump/fs/lib/libukfs/Makefile                    |    15 +
 sys/rump/fs/lib/libukfs/ukfs.c                      |   588 ++++++++
 sys/rump/fs/lib/libukfs/ukfs.h                      |    82 +
 sys/rump/include/machine/bswap.h                    |    47 +
 sys/rump/include/machine/cpu.h                      |    42 +
 sys/rump/include/machine/intr.h                     |    44 +
 sys/rump/include/machine/pmap.h                     |    39 +
 sys/rump/librump/Makefile                           |     6 +
 sys/rump/librump/rumpkern/Makefile                  |    71 +
 sys/rump/librump/rumpkern/auth.c                    |   151 ++
 sys/rump/librump/rumpkern/emul.c                    |   337 +++++
 sys/rump/librump/rumpkern/fstrans_stub.c            |    66 +
 sys/rump/librump/rumpkern/genfs.c                   |   391 +++++
 sys/rump/librump/rumpkern/lock.c                    |    98 +
 sys/rump/librump/rumpkern/lock_stub.c               |    91 +
 sys/rump/librump/rumpkern/misc_stub.c               |    80 +
 sys/rump/librump/rumpkern/opt/config_file.h         |     1 +
 sys/rump/librump/rumpkern/opt/fs_ffs.h              |     3 +
 sys/rump/librump/rumpkern/opt/fs_union.h            |     1 +
 sys/rump/librump/rumpkern/opt/opt_bufcache.h        |     1 +
 sys/rump/librump/rumpkern/opt/opt_ddb.h             |     1 +
 sys/rump/librump/rumpkern/opt/opt_hz.h              |     1 +
 sys/rump/librump/rumpkern/opt/opt_ktrace.h          |     1 +
 sys/rump/librump/rumpkern/opt/opt_multiprocessor.h  |     1 +
 sys/rump/librump/rumpkern/opt/opt_nmbclusters.h     |     1 +
 sys/rump/librump/rumpkern/opt/opt_ptrace.h          |     1 +
 sys/rump/librump/rumpkern/opt/opt_revcache.h        |     1 +
 sys/rump/librump/rumpkern/opt/opt_rtc_offset.h      |     1 +
 sys/rump/librump/rumpkern/opt/opt_softdep.h         |     1 +
 sys/rump/librump/rumpkern/opt/opt_sysv.h            |     1 +
 sys/rump/librump/rumpkern/opt/opt_sysvparam.h       |     1 +
 sys/rump/librump/rumpkern/opt/opt_vnode_lockdebug.h |     1 +
 sys/rump/librump/rumpkern/opt/veriexec.h            |     1 +
 sys/rump/librump/rumpkern/pmap_stub.c               |    55 +
 sys/rump/librump/rumpkern/pool.c                    |   141 ++
 sys/rump/librump/rumpkern/rump.c                    |   473 +++++++
 sys/rump/librump/rumpkern/rump.h                    |   116 +
 sys/rump/librump/rumpkern/rump_private.h            |    78 +
 sys/rump/librump/rumpkern/specfs.c                  |   215 +++
 sys/rump/librump/rumpkern/vfs.c                     |   381 +++++
 sys/rump/librump/rumpkern/vfsops_stub.c             |    85 +
 sys/rump/librump/rumpkern/vm.c                      |   550 ++++++++
 sys/rump/librump/rumpuser/Makefile                  |    13 +
 sys/rump/librump/rumpuser/rumpuser.c                |   231 +++
 sys/rump/librump/rumpuser/rumpuser.h                |    63 +
 sys/secmodel/bsd44/secmodel_bsd44_securelevel.c     |     9 +-
 sys/sys/Makefile                                    |    16 +-
 sys/sys/aio.h                                       |   123 +
 sys/sys/ataio.h                                     |     4 +-
 sys/sys/audioio.h                                   |     3 +-
 sys/sys/bootblock.h                                 |     8 +-
 sys/sys/buf.h                                       |    10 +-
 sys/sys/callback.h                                  |    11 +-
 sys/sys/callout.h                                   |   119 +-
 sys/sys/cctr.h                                      |    57 +
 sys/sys/cdio.h                                      |    20 +-
 sys/sys/clockctl.h                                  |     4 +-
 sys/sys/condvar.h                                   |     8 +-
 sys/sys/conf.h                                      |    62 +-
 sys/sys/cpu.h                                       |    74 +
 sys/sys/cpu_data.h                                  |    45 +-
 sys/sys/cpuio.h                                     |    69 +
 sys/sys/device.h                                    |    29 +-
 sys/sys/disk.h                                      |    24 +-
 sys/sys/disklabel.h                                 |    16 +-
 sys/sys/dkio.h                                      |     4 +-
 sys/sys/domain.h                                    |    15 +-
 sys/sys/endian.h                                    |    30 +-
 sys/sys/envsys.h                                    |   148 +-
 sys/sys/evcnt.h                                     |    19 +-
 sys/sys/event.h                                     |     3 +-
 sys/sys/exec.h                                      |     9 +-
 sys/sys/exec_elf.h                                  |    29 +-
 sys/sys/extent.h                                    |    15 +-
 sys/sys/file.h                                      |    15 +-
 sys/sys/fileassoc.h                                 |     6 +-
 sys/sys/filedesc.h                                  |    11 +-
 sys/sys/fstrans.h                                   |     7 +-
 sys/sys/fstypes.h                                   |    10 +-
 sys/sys/gcq.h                                       |   463 +++++++
 sys/sys/gennameih.awk                               |    82 +
 sys/sys/idle.h                                      |    37 +
 sys/sys/ioccom.h                                    |    10 +-
 sys/sys/kauth.h                                     |    10 +-
 sys/sys/kcont.h                                     |   167 --
 sys/sys/kernel.h                                    |     3 +-
 sys/sys/kprintf.h                                   |     5 +-
 sys/sys/ksyms.h                                     |     4 +-
 sys/sys/kthread.h                                   |    22 +-
 sys/sys/ktrace.h                                    |   158 ++-
 sys/sys/lkm.h                                       |     4 +-
 sys/sys/localedef.h                                 |     6 +-
 sys/sys/lock.h                                      |   121 +-
 sys/sys/lockdebug.h                                 |     5 +-
 sys/sys/lwp.h                                       |   216 +-
 sys/sys/malloc.h                                    |    10 +-
 sys/sys/mallocvar.h                                 |    14 +-
 sys/sys/mbuf.h                                      |    24 +-
 sys/sys/mman.h                                      |     3 +-
 sys/sys/mount.h                                     |   121 +-
 sys/sys/mutex.h                                     |    16 +-
 sys/sys/namei.h                                     |    78 +-
 sys/sys/namei.src                                   |   224 +++
 sys/sys/param.h                                     |    17 +-
 sys/sys/pax.h                                       |     4 +-
 sys/sys/pipe.h                                      |    16 +-
 sys/sys/pool.h                                      |     9 +-
 sys/sys/power.h                                     |   128 +-
 sys/sys/proc.h                                      |    53 +-
 sys/sys/prot.h                                      |    59 +
 sys/sys/protosw.h                                   |    13 +-
 sys/sys/ptrace.h                                    |     8 +-
 sys/sys/queue.h                                     |     9 +-
 sys/sys/ras.h                                       |    10 +-
 sys/sys/resourcevar.h                               |    22 +-
 sys/sys/sched.h                                     |   126 +-
 sys/sys/scsiio.h                                    |     4 +-
 sys/sys/select.h                                    |    13 +-
 sys/sys/selinfo.h                                   |    11 +-
 sys/sys/sem.h                                       |     6 +-
 sys/sys/siginfo.h                                   |     8 +-
 sys/sys/simplelock.h                                |   195 ++
 sys/sys/sleepq.h                                    |   103 +-
 sys/sys/socket.h                                    |    30 +-
 sys/sys/socketvar.h                                 |    33 +-
 sys/sys/sockio.h                                    |     9 +-
 sys/sys/spl.h                                       |     3 +-
 sys/sys/statvfs.h                                   |     4 +-
 sys/sys/syncobj.h                                   |    70 +
 sys/sys/syscall.h                                   |    78 +-
 sys/sys/syscallargs.h                               |   126 +-
 sys/sys/sysctl.h                                    |    13 +-
 sys/sys/systm.h                                     |    11 +-
 sys/sys/systrace.h                                  |     4 +-
 sys/sys/time.h                                      |     6 +-
 sys/sys/timepps.h                                   |     4 +-
 sys/sys/timevar.h                                   |    12 +-
 sys/sys/tty.h                                       |     6 +-
 sys/sys/types.h                                     |    11 +-
 sys/sys/ucred.h                                     |    29 +-
 sys/sys/un.h                                        |    13 +-
 sys/sys/unistd.h                                    |    11 +-
 sys/sys/unpcb.h                                     |    20 +-
 sys/sys/uuid.h                                      |     3 +-
 sys/sys/verified_exec.h                             |    83 +-
 sys/sys/vfs_syscalls.h                              |    32 +
 sys/sys/vmem.h                                      |     5 +-
 sys/sys/vnode.h                                     |    33 +-
 sys/sys/vnode_if.h                                  |    10 +-
 sys/sys/wait.h                                      |     3 +-
 sys/sys/workqueue.h                                 |    13 +-
 sys/ufs/ext2fs/ext2fs_extern.h                      |    15 +-
 sys/ufs/ext2fs/ext2fs_inode.c                       |    24 +-
 sys/ufs/ext2fs/ext2fs_lookup.c                      |    19 +-
 sys/ufs/ext2fs/ext2fs_readwrite.c                   |     9 +-
 sys/ufs/ext2fs/ext2fs_vfsops.c                      |    72 +-
 sys/ufs/ext2fs/ext2fs_vnops.c                       |    12 +-
 sys/ufs/ffs/ffs_alloc.c                             |    19 +-
 sys/ufs/ffs/ffs_balloc.c                            |     6 +-
 sys/ufs/ffs/ffs_extern.h                            |    35 +-
 sys/ufs/ffs/ffs_inode.c                             |    19 +-
 sys/ufs/ffs/ffs_snapshot.c                          |   522 ++++---
 sys/ufs/ffs/ffs_softdep.c                           |   250 +-
 sys/ufs/ffs/ffs_softdep.stub.c                      |     8 +-
 sys/ufs/ffs/ffs_vfsops.c                            |    94 +-
 sys/ufs/ffs/ffs_vnops.c                             |   136 +-
 sys/ufs/ffs/softdep.h                               |     4 +-
 sys/ufs/lfs/lfs_alloc.c                             |    10 +-
 sys/ufs/lfs/lfs_bio.c                               |    24 +-
 sys/ufs/lfs/lfs_debug.c                             |     5 +-
 sys/ufs/lfs/lfs_extern.h                            |    10 +-
 sys/ufs/lfs/lfs_inode.c                             |    17 +-
 sys/ufs/lfs/lfs_segment.c                           |   109 +-
 sys/ufs/lfs/lfs_subr.c                              |    16 +-
 sys/ufs/lfs/lfs_syscalls.c                          |     8 +-
 sys/ufs/lfs/lfs_vfsops.c                            |   101 +-
 sys/ufs/lfs/lfs_vnops.c                             |   744 ++++++----
 sys/ufs/mfs/mfs_extern.h                            |    17 +-
 sys/ufs/mfs/mfs_vfsops.c                            |    58 +-
 sys/ufs/mfs/mfs_vnops.c                             |    22 +-
 sys/ufs/mfs/mfsnode.h                               |     4 +-
 sys/ufs/ufs/dirhash.h                               |     5 +-
 sys/ufs/ufs/extattr.h                               |     5 +-
 sys/ufs/ufs/inode.h                                 |     6 +-
 sys/ufs/ufs/quota.h                                 |    84 +-
 sys/ufs/ufs/ufs_bmap.c                              |     7 +-
 sys/ufs/ufs/ufs_dirhash.c                           |    59 +-
 sys/ufs/ufs/ufs_extattr.c                           |    23 +-
 sys/ufs/ufs/ufs_extern.h                            |    34 +-
 sys/ufs/ufs/ufs_ihash.c                             |    18 +-
 sys/ufs/ufs/ufs_inode.c                             |    30 +-
 sys/ufs/ufs/ufs_lookup.c                            |    29 +-
 sys/ufs/ufs/ufs_quota.c                             |   479 ++++--
 sys/ufs/ufs/ufs_readwrite.c                         |    73 +-
 sys/ufs/ufs/ufs_vfsops.c                            |    19 +-
 sys/ufs/ufs/ufs_vnops.c                             |   182 +--
 sys/ufs/ufs/ufsmount.h                              |    10 +-
 sys/uvm/files.uvm                                   |     4 +-
 sys/uvm/uvm.h                                       |    29 +-
 sys/uvm/uvm_amap.c                                  |    57 +-
 sys/uvm/uvm_amap.h                                  |    12 +-
 sys/uvm/uvm_anon.c                                  |    10 +-
 sys/uvm/uvm_aobj.c                                  |    51 +-
 sys/uvm/uvm_bio.c                                   |    83 +-
 sys/uvm/uvm_device.c                                |     6 +-
 sys/uvm/uvm_extern.h                                |    38 +-
 sys/uvm/uvm_fault.c                                 |    38 +-
 sys/uvm/uvm_glue.c                                  |   266 ++-
 sys/uvm/uvm_init.c                                  |    16 +-
 sys/uvm/uvm_io.c                                    |     6 +-
 sys/uvm/uvm_km.c                                    |    30 +-
 sys/uvm/uvm_loan.c                                  |     8 +-
 sys/uvm/uvm_map.c                                   |   249 ++-
 sys/uvm/uvm_map.h                                   |   214 +--
 sys/uvm/uvm_meter.c                                 |     6 +-
 sys/uvm/uvm_mmap.c                                  |   138 +-
 sys/uvm/uvm_mremap.c                                |    88 +-
 sys/uvm/uvm_page.c                                  |   174 +-
 sys/uvm/uvm_page.h                                  |     6 +-
 sys/uvm/uvm_pager.c                                 |    49 +-
 sys/uvm/uvm_pager.h                                 |     5 +-
 sys/uvm/uvm_pdaemon.c                               |    37 +-
 sys/uvm/uvm_pdpolicy_clockpro.c                     |    13 +-
 sys/uvm/uvm_pglist.c                                |    22 +-
 sys/uvm/uvm_pmap.h                                  |     4 +-
 sys/uvm/uvm_readahead.c                             |    12 +-
 sys/uvm/uvm_swap.c                                  |   125 +-
 sys/uvm/uvm_vnode.c                                 |   150 +-
 587 files changed, 23894 insertions(+), 12772 deletions(-)

diffs (truncated from 76260 to 300 lines):

diff -r cedd0f9e1207 -r 2e1c86d7abd6 sys/miscfs/procfs/procfs_vnops.c
--- a/sys/miscfs/procfs/procfs_vnops.c  Mon Sep 03 14:31:56 2007 +0000
+++ b/sys/miscfs/procfs/procfs_vnops.c  Mon Sep 03 14:41:57 2007 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_vnops.c,v 1.123.2.3 2007/02/26 09:11:31 yamt Exp $      */
+/*     $NetBSD: procfs_vnops.c,v 1.123.2.4 2007/09/03 14:41:57 yamt Exp $      */
 
 /*-
  * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
@@ -112,7 +112,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.123.2.3 2007/02/26 09:11:31 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.123.2.4 2007/09/03 14:41:57 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -181,6 +181,7 @@
        { DT_LNK, N("cwd"),     PFScwd,         NULL },
        { DT_LNK, N("root"),    PFSchroot,      NULL },
        { DT_LNK, N("emul"),    PFSemul,        NULL },
+       { DT_REG, N("statm"),   PFSstatm,       procfs_validfile_linux },
 #ifdef __HAVE_PROCFS_MACHDEP
        PROCFS_MACHDEP_NODETYPE_DEFNS
 #endif
@@ -200,6 +201,8 @@
        { DT_REG, N("uptime"),      PFSuptime,         procfs_validfile_linux },
        { DT_REG, N("mounts"),      PFSmounts,         procfs_validfile_linux },
        { DT_REG, N("devices"),     PFSdevices,        procfs_validfile_linux },
+       { DT_REG, N("stat"),        PFScpustat,        procfs_validfile_linux },
+       { DT_REG, N("loadavg"),     PFSloadavg,        procfs_validfile_linux },
 #undef N
 };
 static const int nproc_root_targets =
@@ -575,13 +578,24 @@
                vp = target->p_cwdi->cwdi_rdir;
                break;
        case PFSexe:
-               rvp = rootvnode;
                vp = target->p_textvp;
                break;
        default:
                return (NULL);
        }
 
+       /*
+        * XXX: this horrible kludge avoids locking panics when
+        * attempting to lookup links that point to within procfs
+        */
+       if (vp != NULL && vp->v_tag == VT_PROCFS) {
+               if (bpp) {
+                       *--bp = '/';
+                       *bpp = bp;
+               }
+               return vp;
+       }
+
        if (rvp == NULL)
                rvp = rootvnode;
        mutex_exit(&target->p_mutex);   /* XXXSMP */
@@ -589,8 +603,14 @@
            len / 2, 0, caller) != 0) {
                vp = NULL;
                if (bpp) {
-                       bp = *bpp;
-                       *--bp = '/';
+/* 
+                       if (t == PFSexe) {
+                               snprintf(path, len, "%s/%d/file"
+                                   mp->mnt_stat.f_mntonname, pfs->pfs_pid);
+                       } else */ {
+                               bp = *bpp;
+                               *--bp = '/';
+                       }
                }
        }
        mutex_enter(&target->p_mutex);  /* XXXSMP */
@@ -724,6 +744,7 @@
        case PFSmaps:
        case PFScmdline:
        case PFSemul:
+       case PFSstatm:
                vap->va_nlink = 1;
                vap->va_uid = kauth_cred_geteuid(procp->p_cred);
                vap->va_gid = kauth_cred_getegid(procp->p_cred);
@@ -733,6 +754,8 @@
        case PFScpuinfo:
        case PFSuptime:
        case PFSmounts:
+       case PFScpustat:
+       case PFSloadavg:
                vap->va_nlink = 1;
                vap->va_uid = vap->va_gid = 0;
                break;
@@ -840,6 +863,9 @@
        case PFScpuinfo:
        case PFSuptime:
        case PFSmounts:
+       case PFScpustat:
+       case PFSloadavg:
+       case PFSstatm:
                vap->va_bytes = vap->va_size = 0;
                break;
        case PFSmap:
@@ -1209,9 +1235,9 @@
            UIO_MX - offsetof(struct dirent, d_name), "%ld", (long)p->p_pid);
        d.d_type = DT_DIR;
 
-       rw_exit(&proclist_lock);
+       mutex_exit(&proclist_lock);
        error = uiomove(&d, UIO_MX, uiop);
-       rw_enter(&proclist_lock, RW_READER);
+       mutex_enter(&proclist_lock);
        if (error) {
                ctxp->error = error;
                return -1;
@@ -1550,13 +1576,15 @@
 
                if ((error = procfs_proc_lock(pfs->pfs_pid, &pown, ESRCH)) != 0)
                        return error;
+
                mutex_enter(&pown->p_mutex);
                fp = fd_getfile(pown->p_fd, pfs->pfs_fd);
                mutex_exit(&pown->p_mutex);
-               if (error != 0) {
+               if (fp == NULL) {
                        procfs_proc_unlock(pown);
-                       return (EBADF);
+                       return EBADF;
                }
+
                FILE_USE(fp);
                switch (fp->f_type) {
                case DTYPE_VNODE:
@@ -1574,11 +1602,20 @@
                        }
                        bp = path + MAXPATHLEN;
                        *--bp = '\0';
-                       vp = curproc->p_cwdi->cwdi_rdir;        /* XXXSMP */
-                       if (vp == NULL)
-                               vp = rootvnode;
-                       error = getcwd_common(vxp, vp, &bp, path,
-                           MAXPATHLEN / 2, 0, curlwp);
+
+                       /*
+                        * XXX: kludge to avoid locking against ourselves
+                        * in getcwd()
+                        */
+                       if (vxp->v_tag == VT_PROCFS) {
+                               *--bp = '/';
+                       } else {
+                               vp = curproc->p_cwdi->cwdi_rdir; /* XXXSMP */
+                               if (vp == NULL)
+                                       vp = rootvnode;
+                               error = getcwd_common(vxp, vp, &bp, path,
+                                   MAXPATHLEN / 2, 0, curlwp);
+                       }
                        FILE_UNUSE(fp, curlwp);
                        if (error)
                                break;
diff -r cedd0f9e1207 -r 2e1c86d7abd6 sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c    Mon Sep 03 14:31:56 2007 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c    Mon Sep 03 14:41:57 2007 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spec_vnops.c,v 1.81.2.2 2006/12/30 20:50:18 yamt Exp $ */
+/*     $NetBSD: spec_vnops.c,v 1.81.2.3 2007/09/03 14:41:57 yamt Exp $ */
 
 /*
  * Copyright (c) 1989, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.81.2.2 2006/12/30 20:50:18 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.81.2.3 2007/09/03 14:41:57 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -130,8 +130,7 @@
  * Trivial lookup routine that always fails.
  */
 int
-spec_lookup(v)
-       void *v;
+spec_lookup(void *v)
 {
        struct vop_lookup_args /* {
                struct vnode *a_dvp;
@@ -161,8 +160,7 @@
  */
 /* ARGSUSED */
 int
-spec_open(v)
-       void *v;
+spec_open(void *v)
 {
        struct vop_open_args /* {
                struct vnode *a_vp;
@@ -172,12 +170,9 @@
        } */ *ap = v;
        struct lwp *l = ap->a_l;
        struct vnode *vp = ap->a_vp;
-       const struct bdevsw *bdev;
-       const struct cdevsw *cdev;
        dev_t dev = (dev_t)vp->v_rdev;
        int error;
        struct partinfo pi;
-       int (*d_ioctl)(dev_t, u_long, caddr_t, int, struct lwp *);
        enum kauth_device_req req;
 
        /*
@@ -194,39 +189,26 @@
        switch (vp->v_type) {
 
        case VCHR:
-               cdev = cdevsw_lookup(dev);
-               if (cdev == NULL)
-                       return (ENXIO);
-
                req = M2K(ap->a_mode);
-
                error = kauth_authorize_device_spec(ap->a_cred, req, vp);
                if (error)
                        return (error);
 
-               if (cdev->d_type == D_TTY)
+               if (cdev_type(dev) == D_TTY)
                        vp->v_flag |= VISTTY;
                VOP_UNLOCK(vp, 0);
-               error = (*cdev->d_open)(dev, ap->a_mode, S_IFCHR, l);
+               error = cdev_open(dev, ap->a_mode, S_IFCHR, l);
                vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
-               if (cdev->d_type != D_DISK)
+               if (cdev_type(dev) != D_DISK)
                        return error;
-               d_ioctl = cdev->d_ioctl;
                break;
 
        case VBLK:
-               bdev = bdevsw_lookup(dev);
-               if (bdev == NULL)
-                       return (ENXIO);
-
                req = M2K(ap->a_mode);
-
                error = kauth_authorize_device_spec(ap->a_cred, req, vp);
                if (error)
                        return (error);
-
-               error = (*bdev->d_open)(dev, ap->a_mode, S_IFBLK, l);
-               d_ioctl = bdev->d_ioctl;
+               error = bdev_open(dev, ap->a_mode, S_IFBLK, l);
                break;
 
        case VNON:
@@ -244,8 +226,13 @@
 
        if (error)
                return error;
-       if (!(*d_ioctl)(vp->v_rdev, DIOCGPART, (caddr_t)&pi, FREAD, curlwp))
-               vp->v_size = (voff_t)pi.disklab->d_secsize * pi.part->p_size;
+       if (vp->v_type == VCHR)
+               error = cdev_ioctl(vp->v_rdev, DIOCGPART, &pi, FREAD, curlwp);
+       else
+               error = bdev_ioctl(vp->v_rdev, DIOCGPART, &pi, FREAD, curlwp);
+       if (error == 0)
+               uvm_vnp_setsize(vp,
+                   (voff_t)pi.disklab->d_secsize * pi.part->p_size);
        return 0;
 }
 
@@ -254,8 +241,7 @@
  */
 /* ARGSUSED */
 int
-spec_read(v)
-       void *v;
+spec_read(void *v)
 {
        struct vop_read_args /* {
                struct vnode *a_vp;
@@ -267,8 +253,6 @@
        struct uio *uio = ap->a_uio;
        struct lwp *l = curlwp;
        struct buf *bp;
-       const struct bdevsw *bdev;
-       const struct cdevsw *cdev;
        daddr_t bn;
        int bsize, bscale;
        struct partinfo dpart;
@@ -289,11 +273,7 @@
 
        case VCHR:
                VOP_UNLOCK(vp, 0);
-               cdev = cdevsw_lookup(vp->v_rdev);
-               if (cdev != NULL)
-                       error = (*cdev->d_read)(vp->v_rdev, uio, ap->a_ioflag);
-               else
-                       error = ENXIO;




Home | Main Index | Thread Index | Old Index