int attachdev(Port*); void detachdev(Port*); void work(void); Hub* newhub(char *, Dev *);