/* Copyright (C) Charles Forsyth * See /doc/license/NOTICE.Plan9-9k.txt for details about the licensing. */ /* Portions of this file are Copyright (C) 2015-2018 Giacomo Tesio * See /doc/license/gpl-2.0.txt for details about the licensing. */ /* Portions of this file are Copyright (C) 9front's team. * See /doc/license/9front-mit for details about the licensing. * See http://git.9front.org/plan9front/plan9front/HEAD/info.html for a list of authors. */ #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "../port/error.h" #include "ip.h" static void nullbind(Ipifc* _1, int _2, char** _3) { error("cannot bind null device"); } static void nullunbind(Ipifc* _1) { } static void nullbwrite(Ipifc* _1, Block* _2, int _3, uint8_t* _4) { error("nullbwrite"); } Medium nullmedium = { .name= "null", .bind= nullbind, .unbind= nullunbind, .bwrite= nullbwrite, }; void nullmediumlink(void) { addipmedium(&nullmedium); }