MCPcopy Create free account

hub / github.com/davmac314/dinit / functions

Functions1,514 in github.com/davmac314/dinit

↓ 9 callersMethodget_buf
Get raw pointer to the current buffer. Note: The buffer may be null if allocation failed (buffer_fail_bit will be set).
src/includes/dinit-iostream.h:147
↓ 9 callersMethodgood
Check whether the stream is currently "good". Returns: true when there are no error states on the stream; false otherwise.
src/includes/dinit-iostream.h:329
↓ 9 callersMethodis_queued
dasynq/include/dasynq/daryheap.h:294
↓ 9 callersMethodpin_start
src/service.cc:839
↓ 9 callersFunctionprocess_service_file
src/includes/load-service.h:1020
↓ 9 callersMethodrelease_watcher
dasynq/include/dasynq.h:1114
↓ 9 callersMethodrun
Poll the event loop and process any pending events (up to a limit). If no events are pending, wait for and process at least one event.
dasynq/include/dasynq.h:1521
↓ 9 callersMethodset_stop_command
Set the stop command and arguments (may throw std::bad_alloc)
src/includes/proc-service.h:371
↓ 9 callersMethodsize
dasynq/include/dasynq/svec.h:225
↓ 9 callersFunctionto_dec_digits
src/includes/dinit-util.h:608
↓ 9 callersMethodunpin
src/service.cc:854
↓ 9 callersFunctionvalidate_service_name
Check whether a string is valid as a service name (possibly including a service argument).
src/includes/load-service.h:393
↓ 8 callersMethodbuild
Build a mapping excluding named variables (only called if the parent is the real environment). Note that the return is non-owning, i.e. the variable v
src/includes/dinit-env.h:173
↓ 8 callersMethoddid_exit_clean
src/tests/test-includes/baseproc-sys.h:124
↓ 8 callersMethodget_dep_depth
Get the (cached) dependency depth of this service, i.e. how long is the dependency tail of this service?
src/includes/service.h:890
↓ 8 callersMethodget_err
src/includes/dinit-client.h:60
↓ 8 callersMethodget_line_num
src/includes/load-service.h:215
↓ 8 callersMethodget_signal
src/tests/test-includes/dinit.h:76
↓ 8 callersMethodget_watched_fd
src/tests/test-includes/dinit.h:131
↓ 8 callersMethodis_hard
Check if the dependency is a hard dependency (including milestone still waiting).
src/includes/service.h:169
↓ 8 callersFunctionnanosleepx
src/igr-tests/igr.h:499
↓ 8 callersFunctionprint_termination_details
src/dinitctl.cc:784
↓ 8 callersMethodprocess_monotonic_timers
dasynq/include/dasynq/itimer.h:126
↓ 8 callersMethodremove
dasynq/include/dasynq/childproc.h:36
↓ 8 callersMethodrm_dep
Remove a dependency, of the given type, to the given service. Propagation queues should be processed after calling. Returns: true if the specified dep
src/includes/service.h:830
↓ 8 callersMethodset_enabled
src/tests/test-includes/dinit.h:136
↓ 8 callersMethodset_start_timeout
src/includes/proc-service.h:543
↓ 7 callersFunctionappend
Variadic method to append strings to a buffer:
src/dinit-log.cc:364
↓ 7 callersMethodarm_timer_rel
src/tests/test-includes/dinit.h:225
↓ 7 callersFunctioncombine_paths
Combine two paths to produce a path. If the second path is absolute, it is returned unmodified; otherwise, it is appended to the first path (with a sl
src/includes/dinit-util.h:310
↓ 7 callersFunctiondo_log_part
Log part of a message. A series of calls to do_log_part must be followed by a call to do_log_commit.
src/dinit-log.cc:494
↓ 7 callersFunctionflush_log
src/dinit.cc:1141
↓ 7 callersMethodget_action
src/includes/dinit-client.h:61
↓ 7 callersMethodget_errno
src/includes/dinit-iostream.h:91
↓ 7 callersMethodget_signo
mandatory:
dasynq/include/dasynq/kqueue.h:50
↓ 7 callersMethodget_time
dasynq/include/dasynq/timerbase.h:451
↓ 7 callersMethodinsert
dasynq/include/dasynq/daryheap.h:254
↓ 7 callersMethodis_empty
src/includes/dinit-ll.h:71
↓ 7 callersMethodis_unrefd
Check whether this service has no dependents/dependencies/references that would keep it from unloading. Does not check listeners (i.e. mostly useful f
src/includes/service.h:712
↓ 7 callersMethodnum_vals
dasynq/include/dasynq/btree_set.h:47
↓ 7 callersFunctionopenat
src/tests/test-bpsys.cc:496
↓ 7 callersFunctionpipe2
src/tests/test-bpsys.cc:550
↓ 7 callersMethodpop_back
dasynq/include/dasynq/svec.h:210
↓ 7 callersMethodprepare_watcher
Add a watcher into the queueing system (but don't queue it). Call with lock held. may throw: std::bad_alloc
dasynq/include/dasynq.h:468
↓ 7 callersFunctionprocess_service_line
src/includes/load-service.h:1819
↓ 7 callersFunctionreport_error
src/dinit-check.cc:589
↓ 7 callersMethodstop_all_services
src/includes/service.h:1261
↓ 6 callersFunctioncheck_cycle
Check for dependency cycles for the specified service (orig) with the given set of dependencies. Report any cycles as occurring in _report_svc_name_.
src/load-service.cc:90
↓ 6 callersFunctioncheck_file_contents
src/igr-tests/igr.h:473
↓ 6 callersMethoddid_exit
src/tests/test-includes/baseproc-sys.h:119
↓ 6 callersFunctionfill_some
Fill a circular buffer from a file descriptor, until it contains at least some more data then it did. Throws cp_read_exception if no more bytes can be
src/includes/dinit-client.h:180
↓ 6 callersMethodissue_delete
Queue a watcher for removal, or issue "removed" callback to it. Call with lock free.
dasynq/include/dasynq.h:596
↓ 6 callersMethodload_service
src/tests/cptests/cptests.cc:248
↓ 6 callersFunctionlog_msg_end
Complete a multi-part log message
src/dinit-log.cc:546
↓ 6 callersFunctionopen_with_dir
Open a file and its (real) parent directory, at the same time. This is guaranteed to work even if the path specifies a symbolic link (in this case, th
src/includes/dinit-util.h:427
↓ 6 callersMethodpin_stop
Pin the service in "stopped" state (when it reaches the state)
src/includes/service.h:642
↓ 6 callersFunctionpush_to_log
src/dinit-log.cc:393
↓ 6 callersMethodrbegin
src/includes/dinit-util.h:106
↓ 6 callersMethodsend_fd_event
src/tests/test-includes/dinit.h:46
↓ 6 callersFunctionseparate_args
Given a string and a list of pairs of (start,end) indices for each argument in that string, store a null terminator for the argument. Return a `char *
src/proc-service.cc:23
↓ 6 callersMethodset
src/includes/load-service.h:78
↓ 6 callersMethodset_stop_timeout
src/includes/proc-service.h:538
↓ 6 callersMethodundefine_var
src/includes/dinit-env.h:327
↓ 5 callersMethodadd_fd_watch
fd: file descriptor to watch userdata: data to associate with descriptor flags: IN_EVENTS | OUT_EVENTS | ONE_SHOT soft_fail: true if unsupported f
dasynq/include/dasynq/epoll.h:219
↓ 5 callersMethodc_str
src/includes/static-string.h:160
↓ 5 callersFunctioncheck_load_reply
Check that a "load service" reply was received, and that the requested service was found. state_p may be null.
src/dinitctl.cc:1245
↓ 5 callersFunctionclearenv
src/tests/test-bpsys.cc:660
↓ 5 callersMethodfd_event
src/igr-tests/igr.h:159
↓ 5 callersFunctionfind_service
Find the requested service by name.
src/service.cc:24
↓ 5 callersMethodget_dir
src/includes/service-dir.h:34
↓ 5 callersMethodget_line
src/dinit-iostream.cc:580
↓ 5 callersMethodget_root
dasynq/include/dasynq/stableheap.h:98
↓ 5 callersMethodget_time
src/tests/test-includes/dinit.h:27
↓ 5 callersMethodis_shutting_down
src/includes/service.h:1272
↓ 5 callersFunctionissue_command
src/dinit-monitor.cc:376
↓ 5 callersFunctionissue_load_service
Issue a "load service" command (LOADSERVICE), without waiting for a response. Returns 1 on failure (with error logged), 0 on success.
src/dinitctl.cc:1225
↓ 5 callersMethodopen
src/dinit-iostream.cc:99
↓ 5 callersFunctionparent_path
Find the parent path of a given path, which should refer to a named file or directory (not . or ..). If the path contains no directory, returns the em
src/includes/dinit-util.h:343
↓ 5 callersFunctionparse_unum_param
Parse an unsigned numeric parameter value
src/includes/load-service.h:843
↓ 5 callersMethodqueue
dasynq/include/dasynq.h:328
↓ 5 callersFunctionread_config_name
Read a setting/variable name; return empty string if no valid name. Parameters: env - if set, dashes/dots are not allowed within names (they are not
src/includes/load-service.h:429
↓ 5 callersMethodrelease
src/service.cc:187
↓ 5 callersMethodremove_fd_watch_nolock
dasynq/include/dasynq/epoll.h:258
↓ 5 callersMethodremove_listener
src/includes/dinit-env.h:361
↓ 5 callersFunctionrun_dinitcheck
Run dinitcheck, return { stdout combined with stderr, exit code / -1 for signal termination }
src/igr-tests/igr.h:511
↓ 5 callersMethodset_dep_depth
Set the dependency depth of this depth (from an appropriately calculated value)
src/includes/service.h:896
↓ 5 callersMethodset_notification_fd
Set the notification fd number that the service process will use
src/includes/proc-service.h:569
↓ 5 callersMethodset_priority
Set a node priority. Returns true iff the node becomes the root node (and wasn't before).
dasynq/include/dasynq/daryheap.h:300
↓ 5 callersFunctionskip_ws
Utility function to skip white space. Returns an iterator at the first non-white-space position (or at end).
src/includes/load-service.h:293
↓ 5 callersMethodwas_signalled
src/tests/test-includes/baseproc-sys.h:129
↓ 4 callersMethodadd_listener
src/includes/dinit-env.h:356
↓ 4 callersMethodadd_transition_queue
Add a service record to the stop queue. The service record will have its execute_transition() method called when the queue is processed.
src/includes/service.h:1178
↓ 4 callersMethodallocate
dasynq/include/dasynq/daryheap.h:204
↓ 4 callersFunctionbuf_print
src/includes/dinit-util.h:675
↓ 4 callersMethodcapacity
dasynq/include/dasynq/svec.h:230
↓ 4 callersMethodcheck_head
dasynq/include/dasynq.h:318
↓ 4 callersFunctioncheck_protocol_version
Check the protocol version is compatible with the client. minversion - minimum protocol version that client can speak version - maximum protocol versi
src/includes/dinit-client.h:339
↓ 4 callersMethodclear
src/includes/load-service.h:83
↓ 4 callersMethodclear_no_inherit
src/includes/dinit-env.h:348
↓ 4 callersFunctioncontains
src/control.cc:25
← previousnext →101–200 of 1,514, ranked by callers