1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 2 3 #include <linux/blk-mq.h> 3 #include <linux/blk-mq.h> 4 #include <linux/blkdev.h> 4 #include <linux/blkdev.h> 5 5 6 void *rust_helper_blk_mq_rq_to_pdu(struct requ 6 void *rust_helper_blk_mq_rq_to_pdu(struct request *rq) 7 { 7 { 8 return blk_mq_rq_to_pdu(rq); 8 return blk_mq_rq_to_pdu(rq); 9 } 9 } 10 10 11 struct request *rust_helper_blk_mq_rq_from_pdu 11 struct request *rust_helper_blk_mq_rq_from_pdu(void *pdu) 12 { 12 { 13 return blk_mq_rq_from_pdu(pdu); 13 return blk_mq_rq_from_pdu(pdu); 14 } 14 } 15 15
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.