v1
2026-08-30
tty 改用 kmalloc · v1
页分配器改 kmalloc/kvmalloc 系列,强调 kmalloc 调试优势,减少无谓页分配并降低 memdesc 审计面
原始补丁链接
子 Patch(3)
1/3
tty: port: replace get_zeroed_page() with kzalloc()
tty_port_alloc_xmit_buf() allocates the transmit buffer of a tty port. The buffer only backs the port’s kfifo, the data being sent is copied in and out of it. This buffer can be allocated with kmallo
2/3
serial: core: replace get_zeroed_page() with kzalloc()
uart_alloc_xmit_buf() allocates the transmit buffer of a serial port. The buffer only backs the port’s kfifo, the data being sent is copied in and out of it. This buffer can be allocated with kmalloc
3/3
tty: hvcs: replace __get_free_page() with kmalloc()
hvcs_initialize() allocates the buffer that receives the partner info returned by the H_VTERM_PARTNER_INFO hypercall. The buffer is passed to the hypervisor as a physical address and it must not cross