1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/netgraph
Ed Schouten 6bfa9a2d66 Replace all calls to minor() with dev2unit().
After I removed all the unit2minor()/minor2unit() calls from the kernel
yesterday, I realised calling minor() everywhere is quite confusing.
Character devices now only have the ability to store a unit number, not
a minor number. Remove the confusion by using dev2unit() everywhere.

This commit could also be considered as a bug fix. A lot of drivers call
minor(), while they should actually be calling dev2unit(). In -CURRENT
this isn't a problem, but it turns out we never had any problem reports
related to that issue in the past. I suspect not many people connect
more than 256 pieces of the same hardware.

Reviewed by:	kib
2008-09-27 08:51:18 +00:00
..
atm
bluetooth Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
netflow
netgraph.h Add ng_rmnode_flags() so the caller can pass NG_QUEUE and have the node 2008-09-22 19:28:18 +00:00
ng_async.c
ng_async.h
ng_atmllc.c
ng_atmllc.h
ng_base.c Add ng_rmnode_flags() so the caller can pass NG_QUEUE and have the node 2008-09-22 19:28:18 +00:00
ng_bpf.c
ng_bpf.h
ng_bridge.c
ng_bridge.h
ng_car.c
ng_car.h
ng_cisco.c
ng_cisco.h
ng_deflate.c
ng_deflate.h
ng_device.c Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
ng_device.h
ng_echo.c
ng_echo.h
ng_eiface.c
ng_eiface.h
ng_etf.c
ng_etf.h
ng_ether.c
ng_ether.h
ng_fec.c
ng_fec.h
ng_frame_relay.c
ng_frame_relay.h
ng_gif_demux.c
ng_gif_demux.h
ng_gif.c
ng_gif.h
ng_hole.c
ng_hole.h
ng_hub.c
ng_hub.h
ng_iface.c
ng_iface.h
ng_ip_input.c
ng_ip_input.h
ng_ipfw.c
ng_ipfw.h
ng_ksocket.c
ng_ksocket.h
ng_l2tp.c
ng_l2tp.h
ng_lmi.c
ng_lmi.h
ng_message.h
ng_mppc.c
ng_mppc.h
ng_nat.c
ng_nat.h
ng_one2many.c
ng_one2many.h
ng_parse.c
ng_parse.h
ng_pipe.c
ng_pipe.h
ng_ppp.c
ng_ppp.h
ng_pppoe.c
ng_pppoe.h
ng_pptpgre.c
ng_pptpgre.h
ng_pred1.c
ng_pred1.h
ng_rfc1490.c
ng_rfc1490.h
ng_sample.c
ng_sample.h
ng_socket.c
ng_socket.h
ng_socketvar.h
ng_source.c Fix error message content. 2008-09-21 07:33:33 +00:00
ng_source.h
ng_split.c
ng_split.h
ng_sppp.c
ng_sppp.h
ng_tag.c
ng_tag.h
ng_tcpmss.c
ng_tcpmss.h
ng_tee.c
ng_tee.h
ng_tty.c
ng_tty.h
ng_UI.c
ng_UI.h
ng_vjc.c
ng_vjc.h
ng_vlan.c
ng_vlan.h
NOTES