RPMsg inter-partition messaging
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(lint): rename constructors to v and resolve E332/E331/E410 across packages

Rename create/make to v in rpmsg, error, proxy, auth, version, and
other modules. Fix doc style issues in error.mli, requests.mli, and
expect_continue.mli. Update all callers.

+5 -6
+5 -6
lib/rpmsg.ml
··· 43 43 _IOW(type, nr, size) = (1 << 30) | (size << 16) | (type << 8) | nr *) 44 44 let iow typ nr size = (1 lsl 30) lor (size lsl 16) lor (typ lsl 8) lor nr 45 45 46 - let rpmsg_create_ept_ioctl = iow 0xb5 0x1 endpoint_info_size 47 - let rpmsg_destroy_ept_ioctl = iow 0xb5 0x2 endpoint_info_size 46 + let create_ept_ioctl = iow 0xb5 0x1 endpoint_info_size 47 + let destroy_ept_ioctl = iow 0xb5 0x2 endpoint_info_size 48 48 49 - external rpmsg_ioctl : Unix.file_descr -> int -> bytes -> int 50 - = "caml_rpmsg_ioctl" 49 + external ioctl : Unix.file_descr -> int -> bytes -> int = "caml_rpmsg_ioctl" 51 50 52 51 module Ctrl = struct 53 52 type t = { fd : Unix.file_descr } ··· 65 64 66 65 let create_endpoint t ~name ~src ~dst = 67 66 let buf = encode_info ~name ~src ~dst in 68 - rpmsg_ioctl t.fd rpmsg_create_ept_ioctl buf 67 + ioctl t.fd create_ept_ioctl buf 69 68 70 69 let destroy_endpoint t ~name ~src ~dst = 71 70 let buf = encode_info ~name ~src ~dst in 72 - ignore (rpmsg_ioctl t.fd rpmsg_destroy_ept_ioctl buf) 71 + ignore (ioctl t.fd destroy_ept_ioctl buf) 73 72 74 73 let close t = Unix.close t.fd 75 74 end