Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 550) sorted by relevance

12345678910>>...22

/system/core/libcutils/
Dashmem-dev.cpp163 android::base::unique_fd fd( in __has_memfd_support() local
211 int fd = TEMP_FAILURE_RETRY(open(ashmem_device_path.c_str(), O_RDWR | O_CLOEXEC)); in __ashmem_open_locked() local
242 int fd; in __ashmem_open() local
252 static int __ashmem_is_ashmem(int fd, int fatal) in __ashmem_is_ashmem()
268 int fd = __ashmem_open_locked(); in __ashmem_is_ashmem() local
302 static int __ashmem_check_failure(int fd, int result) in __ashmem_check_failure()
308 static bool memfd_is_ashmem(int fd) { in memfd_is_ashmem()
323 int ashmem_valid(int fd) in ashmem_valid()
333 android::base::unique_fd fd(syscall(__NR_memfd_create, name, MFD_ALLOW_SEALING)); in memfd_create_region() local
366 int fd = __ashmem_open(); in ashmem_create_region() local
[all …]
Dashmem_test.cpp32 void TestCreateRegion(size_t size, unique_fd &fd, int prot) { in TestCreateRegion()
40 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { in TestMmap()
47 void TestProtDenied(const unique_fd &fd, size_t size, int prot) { in TestProtDenied()
53 void TestProtIs(const unique_fd& fd, int prot) { in TestProtIs()
70 unique_fd fd; in TEST() local
92 unique_fd fd; in TEST() local
128 unique_fd fd; in TEST() local
186 unique_fd fd; in TEST() local
214 unique_fd fd; in TEST() local
241 unique_fd fd[nRegions]; in TEST() local
Dashmem-host.cpp37 static bool ashmem_validate_stat(int fd, struct stat* buf) { in ashmem_validate_stat()
55 int ashmem_valid(int fd) { in ashmem_valid()
63 int fd = mkstemp(pattern); in ashmem_create_region() local
88 int ashmem_get_size_region(int fd) in ashmem_get_size_region()
/system/core/adb/
Dadb_io.cpp37 bool SendProtocolString(borrowed_fd fd, std::string_view s) { in SendProtocolString()
50 bool ReadProtocolString(borrowed_fd fd, std::string* s, std::string* error) { in ReadProtocolString()
68 bool SendOkay(borrowed_fd fd) { in SendOkay()
72 bool SendFail(borrowed_fd fd, std::string_view reason) { in SendFail()
76 bool ReadFdExactly(borrowed_fd fd, void* buf, size_t len) { in ReadFdExactly()
103 bool WriteFdExactly(borrowed_fd fd, const void* buf, size_t len) { in WriteFdExactly()
132 bool WriteFdExactly(borrowed_fd fd, const char* str) { in WriteFdExactly()
136 bool WriteFdExactly(borrowed_fd fd, const std::string& str) { in WriteFdExactly()
140 bool WriteFdFmt(borrowed_fd fd, const char* fmt, ...) { in WriteFdFmt()
151 bool ReadOrderlyShutdown(borrowed_fd fd) { in ReadOrderlyShutdown()
Dservices.cpp47 unique_fd fd) { in service_bootstrap_func()
137 static void connect_service(unique_fd fd, std::string host) { in connect_service()
149 static void pair_service(unique_fd fd, std::string host, std::string password) { in pair_service()
155 static void wait_service(unique_fd fd, std::string serial, TransportId transport_id, in wait_service()
250 unique_fd fd = in host_service_to_socket() local
256 unique_fd fd = create_service_thread( in host_service_to_socket() local
266 unique_fd fd = create_service_thread( in host_service_to_socket() local
Dsysdeps.h85 static inline void close_on_exec(borrowed_fd fd) { in close_on_exec()
116 static inline int unix_close(int fd) { in unix_close()
126 static inline int unix_read(borrowed_fd fd, void* buf, size_t len) { in unix_read()
137 static inline int unix_write(borrowed_fd fd, const void* buf, size_t len) { in unix_write()
147 static inline int unix_lseek(borrowed_fd fd, int pos, int where) { in unix_lseek()
204 int fd; member
344 inline HANDLE cast_int_to_handle(const int fd) { in cast_int_to_handle()
399 static inline int get_fd_flags(borrowed_fd fd) { in get_fd_flags()
403 static inline void close_on_exec(borrowed_fd fd) { in close_on_exec()
447 int fd = TEMP_FAILURE_RETRY(open(pathname, options)); in adb_open() local
[all …]
Dsysdeps_unix.cpp19 bool set_tcp_keepalive(borrowed_fd fd, int interval_sec) { in set_tcp_keepalive()
60 static __inline__ void disable_close_on_exec(borrowed_fd fd) { in disable_close_on_exec()
88 for (auto fd : fds_to_inherit) { in adb_launch_process() local
/system/core/adb/daemon/
Drestart_service.cpp31 void restart_root_service(unique_fd fd) { in restart_root_service()
46 void restart_unroot_service(unique_fd fd) { in restart_unroot_service()
57 void restart_tcp_service(unique_fd fd, int port) { in restart_tcp_service()
68 void restart_usb_service(unique_fd fd) { in restart_usb_service()
/system/memory/libion/
Dion.c44 int ion_is_legacy(int fd) { in ion_is_legacy()
59 int fd = open("/dev/ion", O_RDONLY | O_CLOEXEC); in ion_open() local
65 int ion_close(int fd) { in ion_close()
71 static int ion_ioctl(int fd, int req, void* arg) { in ion_ioctl()
80 int ion_is_using_modular_heaps(int fd) { in ion_is_using_modular_heaps()
88 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, in ion_alloc()
106 int ion_free(int fd, ion_user_handle_t handle) { in ion_free()
113 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, int flags, off_t offset, in ion_map()
141 int ion_share(int fd, ion_user_handle_t handle, int* share_fd) { in ion_share()
160 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, in ion_alloc_fd()
[all …]
/system/core/logd/
Dlibaudit.cpp36 static int get_ack(int fd) { in get_ack()
67 static int audit_send(int fd, int type, const void* data, size_t size) { in audit_send()
125 int audit_setup(int fd, pid_t pid) { in audit_setup()
162 int audit_rate_limit(int fd, uint32_t limit) { in audit_rate_limit()
169 int audit_get_reply(int fd, struct audit_message* rep, reply_t block, int peek) { in audit_get_reply()
215 void audit_close(int fd) { in audit_close()
/system/core/fs_mgr/liblp/
Dio_test.cpp52 unique_fd fd(syscall(__NR_memfd_create, "fake_disk", MFD_ALLOW_SEALING)); in CreateFakeDisk() local
90 explicit DefaultPartitionOpener(int fd) in DefaultPartitionOpener()
108 unique_fd fd = CreateFakeDisk(); in CreateFlashedDisk() local
127 unique_fd fd = CreateFakeDisk(); in TEST_F() local
150 unique_fd fd = CreateFakeDisk(); in TEST_F() local
164 unique_fd fd = CreateFakeDisk(); in TEST_F() local
210 unique_fd fd = CreateFlashedDisk(); in TEST_F() local
255 unique_fd fd = CreateFlashedDisk(); in TEST_F() local
274 unique_fd fd = CreateFlashedDisk(); in TEST_F() local
303 unique_fd fd = CreateFlashedDisk(); in TEST_F() local
[all …]
/system/netd/server/
DOffloadUtils.h51 const int fd = bpf::mapRetrieveRW(CLAT_EGRESS_MAP_PATH); in getClatEgressMapFd() local
56 const int fd = bpf::retrieveProgram(with_ethernet_header ? CLAT_EGRESS_PROG_ETHER_PATH in getClatEgressProgFd() local
62 const int fd = bpf::mapRetrieveRW(CLAT_INGRESS_MAP_PATH); in getClatIngressMapFd() local
67 const int fd = bpf::retrieveProgram(with_ethernet_header ? CLAT_INGRESS_PROG_ETHER_PATH in getClatIngressProgFd() local
73 const int fd = bpf::mapRetrieveRW(TETHER_INGRESS_MAP_PATH); in getTetherIngressMapFd() local
78 const int fd = bpf::retrieveProgram(with_ethernet_header ? TETHER_INGRESS_PROG_ETHER_PATH in getTetherIngressProgFd() local
84 const int fd = bpf::mapRetrieveRW(TETHER_STATS_MAP_PATH); in getTetherStatsMapFd() local
89 const int fd = bpf::mapRetrieveRW(TETHER_LIMIT_MAP_PATH); in getTetherLimitMapFd() local
DOffloadUtilsTest.cpp104 int fd = getClatEgressMapFd(); in TEST_F() local
113 int fd = getClatEgressProgFd(RAWIP); in TEST_F() local
122 int fd = getClatEgressProgFd(ETHER); in TEST_F() local
131 int fd = getClatIngressMapFd(); in TEST_F() local
140 int fd = getClatIngressProgFd(RAWIP); in TEST_F() local
149 int fd = getClatIngressProgFd(ETHER); in TEST_F() local
158 int fd = getTetherIngressMapFd(); in TEST_F() local
169 int fd = getTetherIngressProgFd(RAWIP); in TEST_F() local
180 int fd = getTetherIngressProgFd(ETHER); in TEST_F() local
189 int fd = getTetherStatsMapFd(); in TEST_F() local
[all …]
/system/libbase/
Dabi_compatibility.cpp44 bool ReadFdToString(int fd, std::string* content) { in ReadFdToString()
48 bool WriteStringToFd(const std::string& content, int fd) { in WriteStringToFd()
52 bool ReadFully(int fd, void* data, size_t byte_count) { in ReadFully()
56 bool ReadFullyAtOffset(int fd, void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset()
60 bool WriteFully(int fd, const void* data, size_t byte_count) { in WriteFully()
71 extern "C" std::unique_ptr<MappedFile> MAPPEDFILE_FROMFD(int fd, off64_t offset, size_t length, in MAPPEDFILE_FROMFD()
/system/memory/lmkd/libpsi/
Dpsi.cpp38 int fd; in init_psi_monitor() local
81 int register_psi_monitor(int epollfd, int fd, void* data) { in register_psi_monitor()
94 int unregister_psi_monitor(int epollfd, int fd) { in unregister_psi_monitor()
98 void destroy_psi_monitor(int fd) { in destroy_psi_monitor()
/system/vold/bench/
Dbenchgen.py188 fd, f, handle = extract_file(e, e.ret) variable
202 fd, f, handle = extract_file(e, e.args[0]) variable
208 fd, f, handle = extract_file(e, e.args[0]) variable
213 fd, f, handle = extract_file(e, e.args[0]) variable
218 fd, f, handle = extract_file(e, e.args[0]) variable
227 fd, f, handle = extract_file(e, e.args[0]) variable
236 fd, f, handle = extract_file(e, e.args[0]) variable
244 fd, f, handle = extract_file(e, e.args[0]) variable
252 fd, f, handle = extract_file(e, e.args[0]) variable
258 fd, f, handle = extract_file(e, e.args[0]) variable
[all …]
/system/core/libappfuse/
DEpollController.cc38 bool EpollController::AddFd(int fd, int events, void* data) { in AddFd()
42 bool EpollController::UpdateFd(int fd, int events, void* data) { in UpdateFd()
46 bool EpollController::RemoveFd(int fd) { in RemoveFd()
54 bool EpollController::InvokeControl(int op, int fd, int events, void* data) const { in InvokeControl()
/system/core/adb/client/
Dincremental_utils.cpp66 static inline int32_t read_int32(borrowed_fd fd) { in read_int32()
71 static inline int32_t skip_int(borrowed_fd fd) { in skip_int()
75 static inline void append_int(borrowed_fd fd, std::vector<char>* bytes) { in append_int()
82 static inline void append_bytes_with_size(borrowed_fd fd, std::vector<char>* bytes) { in append_bytes_with_size()
94 static inline int32_t skip_bytes_with_size(borrowed_fd fd) { in skip_bytes_with_size()
103 std::pair<std::vector<char>, int32_t> read_id_sig_headers(borrowed_fd fd) { in read_id_sig_headers()
113 std::pair<off64_t, ssize_t> skip_id_sig_headers(borrowed_fd fd) { in skip_id_sig_headers()
123 static T valueAt(borrowed_fd fd, off64_t offset) { in valueAt()
151 static off64_t CentralDirOffset(borrowed_fd fd, Size fileSize) { in CentralDirOffset()
186 static off64_t SignerBlockOffset(borrowed_fd fd, Size fileSize) { in SignerBlockOffset()
[all …]
/system/core/libutils/include/utils/
DCompat.h32 static inline void* mmap64(void* addr, size_t length, int prot, int flags, int fd, off64_t offset) { in mmap64()
36 static inline off64_t lseek64(int fd, off64_t offset, int whence) { in lseek64()
40 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { in pread64()
44 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { in pwrite64()
48 static inline int ftruncate64(int fd, off64_t length) { in ftruncate64()
/system/update_engine/
Dtest_http_server.cc81 bool ParseRequest(int fd, HttpRequest* request) { in ParseRequest()
163 ssize_t WriteString(int fd, const string& str) { in WriteString()
183 ssize_t WriteHeaders(int fd, in WriteHeaders()
225 size_t WritePayload(int fd, in WritePayload()
278 inline size_t WritePayload(int fd, in WritePayload()
285 void HandleQuit(int fd) { in HandleQuit()
295 ssize_t HandleGet(int fd, in HandleGet()
381 ssize_t HandleGet(int fd, in HandleGet()
389 void HandleRedirect(int fd, const HttpRequest& request) { in HandleRedirect()
414 ssize_t HandleError(int fd, const HttpRequest& request) { in HandleError()
[all …]
/system/netd/libnetdutils/include/netdutils/
DFd.h33 constexpr Fd(int fd) : mFd(fd) {} in Fd()
45 inline bool isWellFormed(const Fd fd) { in isWellFormed()
/system/core/qemu_pipe/
Dqemu_pipe.cpp43 int fd = TEMP_FAILURE_RETRY(open("/dev/qemu_pipe", O_RDWR)); in qemu_pipe_open() local
70 int qemu_pipe_frame_send(int fd, const void* buff, size_t len) { in qemu_pipe_frame_send()
84 int qemu_pipe_frame_recv(int fd, void* buff, size_t len) { in qemu_pipe_frame_recv()
/system/extras/ext4_utils/
Dext4_utils.cpp94 void read_sb(int fd, struct ext4_super_block *sb) in read_sb()
206 u64 get_block_device_size(int fd) in get_block_device_size()
226 int is_block_device_fd(int fd __attribute__((unused))) in is_block_device_fd()
240 u64 get_file_size(int fd) in get_file_size()
269 int read_ext(int fd, int verbose) in read_ext()
/system/core/fs_mgr/libvbmeta/
Dwriter.cpp44 Result<void> WritePrimaryVBMetaTable(int fd, const std::string& table) { in WritePrimaryVBMetaTable()
56 Result<void> WriteBackupVBMetaTable(int fd, const std::string& table) { in WriteBackupVBMetaTable()
68 Result<void> WriteVBMetaImage(int fd, const uint8_t slot_number, const std::string& vbmeta_image) { in WriteVBMetaImage()
/system/netd/libnetdutils/
DUniqueFd.cpp25 void UniqueFd::reset(Fd fd) { in reset()
33 std::ostream& operator<<(std::ostream& os, const UniqueFd& fd) { in operator <<()

12345678910>>...22