Systemd/src/network/netdev
Lennart Poettering ae2a15bc14 macro: introduce TAKE_PTR() macro
This macro will read a pointer of any type, return it, and set the
pointer to NULL. This is useful as an explicit concept of passing
ownership of a memory area between pointers.

This takes inspiration from Rust:

https://doc.rust-lang.org/std/option/enum.Option.html#method.take

and was suggested by Alan Jenkins (@sourcejedi).

It drops ~160 lines of code from our codebase, which makes me like it.
Also, I think it clarifies passing of ownership, and thus helps
readability a bit (at least for the initiated who know the new macro)
2018-03-22 20:21:42 +01:00
..
bond.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bond.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bridge.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bridge.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
dummy.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
dummy.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
geneve.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
geneve.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
ipvlan.c ipvlan: fix wrong assignment in ipvlan_init() 2018-01-17 01:28:09 +09:00
ipvlan.h networkd: Add support for ipvlan L3s and flags (#7726) 2017-12-23 18:55:03 +01:00
macvlan.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
macvlan.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
netdev-gperf.gperf networkd: add support for wireguard interface type 2018-01-09 14:00:49 +01:00
netdev.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
netdev.h Merge pull request #7191 from Mic92/systemd 2018-01-09 14:35:54 +01:00
tunnel.c netword: tunnel remove unwanted space. 2018-01-22 15:50:07 +01:00
tunnel.h networkd: Tunnel allows tunnel traffic on ip6tnl devices (#7756) 2017-12-29 23:19:21 +09:00
tuntap.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
tuntap.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
vcan.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
vcan.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
veth.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
veth.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
vlan.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
vlan.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
vrf.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
vrf.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
vxcan.c networkd: introduce vxcan netdev. (#7150) 2017-11-22 08:23:22 +01:00
vxcan.h networkd: introduce vxcan netdev. (#7150) 2017-11-22 08:23:22 +01:00
vxlan.c tree-wide: use "cannot" instead of "can not" 2018-02-08 10:34:52 +01:00
vxlan.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
wireguard.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
wireguard.h networkd: add support for wireguard interface type 2018-01-09 14:00:49 +01:00