To apply the CAN function based on FPGA to the domestic operating system,the design and implementation of CAN driver based on cache queue in KylinOS was proposed.Under the current mainstream Kylin V10 operating system,using PCIe device driver architecture under Linux,the domestic CAN driver based on FPGA was designed and implemented.CAN was used to send and receive communication function.A method of using cache queue was presented to solve the possible packet loss prob-lem caused by limited hardware receiving cache in SJA1000 protocol used by CAN.The comparison test shows that the proposed CAN driver meets the requirements of communication applications,and has stable performance and no packet loss.Implementa-tion results can be translated into third-party libraries rich operating system kernel driver libraries.