547d34736b
List of functional changes: - Make a single device per single node with a single hook. This gives us parrallelizm, which can't be achieved on a single node with many devices/hooks. This also gives us flexibility - we can play with a particular device node, not affecting others. - Remove read queue as it is. Use struct ifqueue instead. This change removes a lot of extra memcpy()ing, m_devget()ting and m_copymem()ming. In ng_device_receivedata() we enqueue an mbuf and wake readers. In ngdread() we take one mbuf from qeueue and uiomove() it to userspace. If no mbuf is present we optionally block. [1] - In ngdwrite() we create an mbuf from uio using m_uiotombuf(). This is faster then uiomove() into buffer, and then m_copydata(), and this is much better than huge m_pullup(). - Perform locking of device - Perform locking of connection list. - Clear out _rcvmsg method, since it does nothing good yet. - Implement NGM_DEVICE_GET_DEVNAME message. - #if 0 ioctl method, while nothing is done here yet. - Return immediately from ngdwrite() if uio_resid == 0. List of tidyness changes: - Introduce device2priv(), to remove cut'n'paste. - Use MALLOC/FREE, instead of malloc/free. - Use unit2minor(). - Use UID_ROOT/GID_WHEEL instead of 0/0. - Define NGD_DEVICE_DEVNAME, use it. - Use more nice macros for debugging. [2] - Return Exxx, not -1. style(9) changes: - No "#endif" after short block. - Break long lines. - Remove extra spaces, add needed spaces. [1] Obtained from: if_tun.c [2] Obtained from: ng_pppoe.c Reviewed by: marks Approved by: julian (mentor) MFC after: 1 month |
||
---|---|---|
.. | ||
3dfx | ||
aac | ||
accf_data | ||
accf_http | ||
acpi | ||
agp | ||
aha | ||
ahb | ||
aic | ||
aic7xxx | ||
aio | ||
amd | ||
amr | ||
an | ||
aout | ||
apm | ||
ar | ||
arcnet | ||
arl | ||
asr | ||
ath | ||
ath_hal | ||
aue | ||
autofs | ||
auxio | ||
awi | ||
axe | ||
bfe | ||
bge | ||
bios | ||
bktr | ||
bridge | ||
cam | ||
canbepm | ||
canbus | ||
cardbus | ||
cbb | ||
cd9660 | ||
cd9660_iconv | ||
ciss | ||
cm | ||
coda | ||
coda5 | ||
coff | ||
cp | ||
crypto | ||
cryptodev | ||
cs | ||
ctau | ||
cue | ||
cx | ||
dc | ||
dcons | ||
dcons_crom | ||
de | ||
digi | ||
dpt | ||
drm | ||
dummynet | ||
ed | ||
el | ||
elink | ||
em | ||
en | ||
ep | ||
esp | ||
ex | ||
exca | ||
ext2fs | ||
fatm | ||
fdc | ||
fdescfs | ||
fe | ||
firewire | ||
fxp | ||
gem | ||
geom | ||
gx | ||
harp | ||
hatm | ||
hfa | ||
hifn | ||
hme | ||
hpfs | ||
i2c | ||
ibcs2 | ||
ichwd | ||
ida | ||
idt | ||
ie | ||
if_disc | ||
if_ef | ||
if_faith | ||
if_gif | ||
if_gre | ||
if_ndis | ||
if_ppp | ||
if_sl | ||
if_stf | ||
if_tap | ||
if_tun | ||
if_vlan | ||
iir | ||
io | ||
ip6fw | ||
ip_mroute_mod | ||
ipfilter | ||
ipfw | ||
ips | ||
isp | ||
ispfw | ||
ixgb | ||
joy | ||
kue | ||
lge | ||
libiconv | ||
libmbpool | ||
libmchain | ||
linprocfs | ||
linux | ||
lnc | ||
lpt | ||
mac_biba | ||
mac_bsdextended | ||
mac_ifoff | ||
mac_lomac | ||
mac_mls | ||
mac_none | ||
mac_partition | ||
mac_portacl | ||
mac_seeotheruids | ||
mac_stub | ||
mac_test | ||
mcd | ||
md | ||
mem | ||
mii | ||
mlx | ||
mly | ||
mpt | ||
msdosfs | ||
msdosfs_iconv | ||
my | ||
ncp | ||
ncv | ||
ndis | ||
netgraph | ||
nfs4client | ||
nfsclient | ||
nfsserver | ||
nge | ||
nmdm | ||
nsp | ||
ntfs | ||
ntfs_iconv | ||
nullfs | ||
nwfs | ||
oldcard | ||
oltr | ||
osf1 | ||
owi | ||
patm | ||
pccard | ||
pcfclock | ||
pcic | ||
pcn | ||
pecoff | ||
pf | ||
plip | ||
pmc | ||
portalfs | ||
ppbus | ||
ppi | ||
pps | ||
procfs | ||
pseudofs | ||
pst | ||
random | ||
ray | ||
rc | ||
rc4 | ||
re | ||
rl | ||
rndtest | ||
rp | ||
rue | ||
s3 | ||
safe | ||
sbni | ||
sbsh | ||
scd | ||
scsi_low | ||
sem | ||
sf | ||
sio | ||
sis | ||
sk | ||
smbfs | ||
sn | ||
snc | ||
snp | ||
sound | ||
speaker | ||
splash | ||
sppp | ||
sr | ||
ste | ||
stg | ||
streams | ||
svr4 | ||
sym | ||
syscons | ||
sysvipc | ||
ti | ||
tl | ||
trm | ||
twa | ||
twe | ||
tx | ||
txp | ||
uart | ||
ubsa | ||
ubsec | ||
ubser | ||
ucom | ||
ucycom | ||
udav | ||
udbp | ||
udf | ||
udf_iconv | ||
ufm | ||
ufs | ||
uftdi | ||
ugen | ||
uhid | ||
ukbd | ||
ulpt | ||
umapfs | ||
umass | ||
umct | ||
umodem | ||
ums | ||
unionfs | ||
uplcom | ||
urio | ||
usb | ||
uscanner | ||
utopia | ||
uvisor | ||
uvscom | ||
vesa | ||
vge | ||
vinum | ||
vpo | ||
vr | ||
vx | ||
wb | ||
wi | ||
wlan | ||
xe | ||
xl | ||
zlib | ||
Makefile | ||
Makefile.inc |