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