Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davmac314/dinit
/ functions
Functions
1,514 in github.com/davmac314/dinit
⨍
Functions
1,514
◇
Types & classes
364
↓ 9 callers
Method
get_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 callers
Method
good
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 callers
Method
is_queued
dasynq/include/dasynq/daryheap.h:294
↓ 9 callers
Method
pin_start
src/service.cc:839
↓ 9 callers
Function
process_service_file
src/includes/load-service.h:1020
↓ 9 callers
Method
release_watcher
dasynq/include/dasynq.h:1114
↓ 9 callers
Method
run
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 callers
Method
set_stop_command
Set the stop command and arguments (may throw std::bad_alloc)
src/includes/proc-service.h:371
↓ 9 callers
Method
size
dasynq/include/dasynq/svec.h:225
↓ 9 callers
Function
to_dec_digits
src/includes/dinit-util.h:608
↓ 9 callers
Method
unpin
src/service.cc:854
↓ 9 callers
Function
validate_service_name
Check whether a string is valid as a service name (possibly including a service argument).
src/includes/load-service.h:393
↓ 8 callers
Method
build
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 callers
Method
did_exit_clean
src/tests/test-includes/baseproc-sys.h:124
↓ 8 callers
Method
get_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 callers
Method
get_err
src/includes/dinit-client.h:60
↓ 8 callers
Method
get_line_num
src/includes/load-service.h:215
↓ 8 callers
Method
get_signal
src/tests/test-includes/dinit.h:76
↓ 8 callers
Method
get_watched_fd
src/tests/test-includes/dinit.h:131
↓ 8 callers
Method
is_hard
Check if the dependency is a hard dependency (including milestone still waiting).
src/includes/service.h:169
↓ 8 callers
Function
nanosleepx
src/igr-tests/igr.h:499
↓ 8 callers
Function
print_termination_details
src/dinitctl.cc:784
↓ 8 callers
Method
process_monotonic_timers
dasynq/include/dasynq/itimer.h:126
↓ 8 callers
Method
remove
dasynq/include/dasynq/childproc.h:36
↓ 8 callers
Method
rm_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 callers
Method
set_enabled
src/tests/test-includes/dinit.h:136
↓ 8 callers
Method
set_start_timeout
src/includes/proc-service.h:543
↓ 7 callers
Function
append
Variadic method to append strings to a buffer:
src/dinit-log.cc:364
↓ 7 callers
Method
arm_timer_rel
src/tests/test-includes/dinit.h:225
↓ 7 callers
Function
combine_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 callers
Function
do_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 callers
Function
flush_log
src/dinit.cc:1141
↓ 7 callers
Method
get_action
src/includes/dinit-client.h:61
↓ 7 callers
Method
get_errno
src/includes/dinit-iostream.h:91
↓ 7 callers
Method
get_signo
mandatory:
dasynq/include/dasynq/kqueue.h:50
↓ 7 callers
Method
get_time
dasynq/include/dasynq/timerbase.h:451
↓ 7 callers
Method
insert
dasynq/include/dasynq/daryheap.h:254
↓ 7 callers
Method
is_empty
src/includes/dinit-ll.h:71
↓ 7 callers
Method
is_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 callers
Method
num_vals
dasynq/include/dasynq/btree_set.h:47
↓ 7 callers
Function
openat
src/tests/test-bpsys.cc:496
↓ 7 callers
Function
pipe2
src/tests/test-bpsys.cc:550
↓ 7 callers
Method
pop_back
dasynq/include/dasynq/svec.h:210
↓ 7 callers
Method
prepare_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 callers
Function
process_service_line
src/includes/load-service.h:1819
↓ 7 callers
Function
report_error
src/dinit-check.cc:589
↓ 7 callers
Method
stop_all_services
src/includes/service.h:1261
↓ 6 callers
Function
check_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 callers
Function
check_file_contents
src/igr-tests/igr.h:473
↓ 6 callers
Method
did_exit
src/tests/test-includes/baseproc-sys.h:119
↓ 6 callers
Function
fill_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 callers
Method
issue_delete
Queue a watcher for removal, or issue "removed" callback to it. Call with lock free.
dasynq/include/dasynq.h:596
↓ 6 callers
Method
load_service
src/tests/cptests/cptests.cc:248
↓ 6 callers
Function
log_msg_end
Complete a multi-part log message
src/dinit-log.cc:546
↓ 6 callers
Function
open_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 callers
Method
pin_stop
Pin the service in "stopped" state (when it reaches the state)
src/includes/service.h:642
↓ 6 callers
Function
push_to_log
src/dinit-log.cc:393
↓ 6 callers
Method
rbegin
src/includes/dinit-util.h:106
↓ 6 callers
Method
send_fd_event
src/tests/test-includes/dinit.h:46
↓ 6 callers
Function
separate_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 callers
Method
set
src/includes/load-service.h:78
↓ 6 callers
Method
set_stop_timeout
src/includes/proc-service.h:538
↓ 6 callers
Method
undefine_var
src/includes/dinit-env.h:327
↓ 5 callers
Method
add_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 callers
Method
c_str
src/includes/static-string.h:160
↓ 5 callers
Function
check_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 callers
Function
clearenv
src/tests/test-bpsys.cc:660
↓ 5 callers
Method
fd_event
src/igr-tests/igr.h:159
↓ 5 callers
Function
find_service
Find the requested service by name.
src/service.cc:24
↓ 5 callers
Method
get_dir
src/includes/service-dir.h:34
↓ 5 callers
Method
get_line
src/dinit-iostream.cc:580
↓ 5 callers
Method
get_root
dasynq/include/dasynq/stableheap.h:98
↓ 5 callers
Method
get_time
src/tests/test-includes/dinit.h:27
↓ 5 callers
Method
is_shutting_down
src/includes/service.h:1272
↓ 5 callers
Function
issue_command
src/dinit-monitor.cc:376
↓ 5 callers
Function
issue_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 callers
Method
open
src/dinit-iostream.cc:99
↓ 5 callers
Function
parent_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 callers
Function
parse_unum_param
Parse an unsigned numeric parameter value
src/includes/load-service.h:843
↓ 5 callers
Method
queue
dasynq/include/dasynq.h:328
↓ 5 callers
Function
read_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 callers
Method
release
src/service.cc:187
↓ 5 callers
Method
remove_fd_watch_nolock
dasynq/include/dasynq/epoll.h:258
↓ 5 callers
Method
remove_listener
src/includes/dinit-env.h:361
↓ 5 callers
Function
run_dinitcheck
Run dinitcheck, return { stdout combined with stderr, exit code / -1 for signal termination }
src/igr-tests/igr.h:511
↓ 5 callers
Method
set_dep_depth
Set the dependency depth of this depth (from an appropriately calculated value)
src/includes/service.h:896
↓ 5 callers
Method
set_notification_fd
Set the notification fd number that the service process will use
src/includes/proc-service.h:569
↓ 5 callers
Method
set_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 callers
Function
skip_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 callers
Method
was_signalled
src/tests/test-includes/baseproc-sys.h:129
↓ 4 callers
Method
add_listener
src/includes/dinit-env.h:356
↓ 4 callers
Method
add_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 callers
Method
allocate
dasynq/include/dasynq/daryheap.h:204
↓ 4 callers
Function
buf_print
src/includes/dinit-util.h:675
↓ 4 callers
Method
capacity
dasynq/include/dasynq/svec.h:230
↓ 4 callers
Method
check_head
dasynq/include/dasynq.h:318
↓ 4 callers
Function
check_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 callers
Method
clear
src/includes/load-service.h:83
↓ 4 callers
Method
clear_no_inherit
src/includes/dinit-env.h:348
↓ 4 callers
Function
contains
src/control.cc:25
← previous
next →
101–200 of 1,514, ranked by callers