Source-Changes archive

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

Re: CVS commit: src/sys



> Module Name:    src
> Committed By:   plunky
> Date:           Wed Aug  6 15:01:24 UTC 2008
> 
> Modified Files:
>         src/sys/compat/linux/common: linux_socket.c
>         src/sys/dev/bluetooth: bthidev.c btsco.c
>         src/sys/kern: uipc_accf.c uipc_socket.c uipc_syscalls.c
>         uipc_usrreq.c
>         src/sys/net: if_gre.c
>         src/sys/netbt: hci.h hci_socket.c l2cap.h l2cap_socket.c
>         l2cap_upper.c
>             rfcomm.h rfcomm_dlc.c rfcomm_session.c rfcomm_socket.c
>             rfcomm_upper.c sco.h sco_socket.c sco_upper.c
>         src/sys/netinet: ip_mroute.c ip_mroute.h ip_output.c ip_var.h
> raw_ip.c
>             tcp_usrreq.c tcp_var.h udp_usrreq.c udp_var.h
>         src/sys/netinet6: icmp6.c ip6_mroute.c ip6_mroute.h ip6_output.c
>             ip6_var.h ip6protosw.h raw_ip6.c
>         src/sys/netiso: clnp.h clnp_raw.c tp_output.c tp_usrreq.c tp_var.h
>         src/sys/netsmb: smb_trantcp.c
>         src/sys/nfs: nfs_boot.c nfs_bootdhcp.c nfs_socket.c nfs_syscalls.c
>         src/sys/sys: protosw.h socketvar.h un.h
> 
> Log Message:
> Convert socket options code to use a sockopt structure
> instead of laying everything into an mbuf.
> 
> approved by core

- This does M_WAITOK allocations while holding sockets locked, which
  will snarl up socket I/O if the system is low on memory.

- Why does it use malloc() and not kmem_alloc()?

Andrew


Home | Main Index | Thread Index | Old Index