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
↓ 581 callers
Method
get_state
src/includes/service.h:630
↓ 383 callers
Method
process_queues
Process state propagation and start/stop queues, until they are empty.
src/includes/service.h:1186
↓ 212 callers
Method
add_service
src/includes/service.h:1091
↓ 205 callers
Method
c_str
src/includes/dinit-util.h:1302
↓ 200 callers
Method
size
src/includes/dinit-util.h:96
↓ 158 callers
Method
start
Start, in specified working directory, with given arguments
src/igr-tests/igr.h:197
↓ 149 callers
Method
end
src/includes/dinit-util.h:105
↓ 125 callers
Function
close
src/tests/test-bpsys.cc:557
↓ 107 callers
Method
length
src/includes/dinit-util.h:1317
↓ 101 callers
Method
empty
src/includes/dinit-util.h:1312
↓ 97 callers
Method
begin
src/includes/dinit-util.h:104
↓ 97 callers
Method
data
src/includes/dinit-util.h:95
↓ 96 callers
Method
consume
Remove the given number of bytes from the start of the buffer.
src/includes/cpbuffer.h:114
↓ 96 callers
Method
emplace_back
dasynq/include/dasynq/svec.h:201
↓ 90 callers
Function
log
Log a message. A newline will be appended.
src/dinit-log.cc:483
↓ 80 callers
Method
wait_for_term
src/igr-tests/igr.h:230
↓ 78 callers
Method
insert
src/includes/dinit-ll.h:131
↓ 73 callers
Method
append
src/includes/dinit-ll.h:45
↓ 66 callers
Method
find_service
src/service.cc:37
↓ 65 callers
Function
igr_assert_eq
src/igr-tests/igr.h:484
↓ 62 callers
Method
remove_service
src/includes/service.h:1096
↓ 61 callers
Method
get_target_state
Get the target (aka desired) state.
src/includes/service.h:555
↓ 61 callers
Function
literal
src/includes/static-string.h:55
↓ 60 callers
Method
push_back
dasynq/include/dasynq/svec.h:181
↓ 59 callers
Method
extract
Extract bytes from the buffer. The bytes remain in the buffer.
src/includes/cpbuffer.h:122
↓ 59 callers
Method
stop
src/service.cc:601
↓ 58 callers
Method
get_length
src/includes/cpbuffer.h:23
↓ 57 callers
Method
start_service
Start the specified service. The service will be marked active.
src/includes/service.h:1038
↓ 55 callers
Function
read_setting_value
Read a setting value, with an assignment or plus-assignment (append). In general a setting value is a single-line string. It may contain multiple par
src/includes/load-service.h:501
↓ 52 callers
Method
started
src/tests/test_service.h:58
↓ 51 callers
Function
init_service_defaults
src/tests/test_procservice.h:60
↓ 49 callers
Function
igr_assert
src/igr-tests/igr.h:492
↓ 47 callers
Function
extract_written_data
retrieve data written via write()
src/tests/test-bpsys.cc:331
↓ 47 callers
Function
read_file_contents
read entire file contents as a string
src/igr-tests/igr.h:448
↓ 45 callers
Method
count_active_services
Find out how many services are active (starting, running or stopping, but not stopped).
src/includes/service.h:1256
↓ 41 callers
Function
supply_read_data
Supply data to be returned by read()
src/tests/test-bpsys.cc:303
↓ 37 callers
Method
find
src/includes/dinit-util.h:109
↓ 36 callers
Method
nseconds
dasynq/include/dasynq/timerbase.h:40
↓ 36 callers
Method
read_ready
src/includes/control.h:69
↓ 34 callers
Function
allocfd
Allocate a file descriptor
src/tests/test-bpsys.cc:281
↓ 34 callers
Method
erase
src/includes/dinit-util.h:1044
↓ 34 callers
Method
seconds
dasynq/include/dasynq/timerbase.h:39
↓ 33 callers
Function
fcntl
src/tests/test-includes/baseproc-sys.h:67
↓ 33 callers
Function
wait_for_reply
Wait for a reply packet, skipping over any information packets that are received in the meantime. Note the reply packet may be partially read. Caller
src/includes/dinit-client.h:201
↓ 31 callers
Function
open
src/tests/test-bpsys.cc:469
↓ 30 callers
Method
get_to
src/includes/service.h:193
↓ 30 callers
Method
unlock
dasynq/include/dasynq/mutex.h:13
↓ 29 callers
Function
fill_buffer_to
Fill a circular buffer from a file descriptor, until it contains at least _rlength_ bytes. Throws cp_read_exception if the requested number of bytes c
src/includes/dinit-client.h:156
↓ 28 callers
Method
get_stdout
src/igr-tests/igr.h:260
↓ 26 callers
Method
lock
dasynq/include/dasynq/mutex.h:12
↓ 26 callers
Function
write_all_x
Write all the requested buffer, and throw an exception on failure. Note: count is int
src/includes/dinit-client.h:319
↓ 25 callers
Method
get_from
src/includes/service.h:188
↓ 25 callers
Method
get_ptr
src/includes/cpbuffer.h:33
↓ 24 callers
Method
prep_socket_path
src/igr-tests/igr.h:383
↓ 23 callers
Method
advance_time
Advance the simulated current time by the given amount, and call timer callbacks.
src/tests/test-includes/dinit.h:33
↓ 23 callers
Method
append
Append a message. If the message will not fit in the buffer, discard it and mark overflow.
src/shutdown.cc:120
↓ 23 callers
Method
get_stop_reason
Why did the service stop?
src/includes/service.h:729
↓ 23 callers
Method
get_type
Get the type of this service record
src/includes/service.h:541
↓ 23 callers
Function
read
src/tests/test-bpsys.cc:578
↓ 23 callers
Method
set_var
src/includes/dinit-env.h:285
↓ 22 callers
Method
clear
Resets current state, other than 'buffer_fail_bit', to clear (error-free).
src/includes/dinit-iostream.h:351
↓ 22 callers
Method
set_auto_restart
Set whether this service should automatically restart when it dies
src/includes/service.h:583
↓ 21 callers
Function
find_service
src/tests/cptests/cptests.cc:120
↓ 21 callers
Method
get
src/includes/dinit-util.h:203
↓ 21 callers
Method
stopped
src/tests/test_service.h:40
↓ 19 callers
Method
deregister
src/tests/test-includes/dinit.h:236
↓ 19 callers
Function
supply_pid_contents
simulate the launcher process forking a daemon process, and supply the process ID of that daemon process in a pid file.
src/tests/proctests.cc:1413
↓ 19 callers
Function
write
src/tests/test-bpsys.cc:590
↓ 18 callers
Method
empty
dasynq/include/dasynq/svec.h:235
↓ 18 callers
Method
get_stderr
src/igr-tests/igr.h:265
↓ 18 callers
Method
set_restart_delay
src/includes/proc-service.h:533
↓ 18 callers
Function
setenv
src/tests/test-bpsys.cc:627
↓ 17 callers
Method
stop_timer
src/tests/test-includes/dinit.h:231
↓ 16 callers
Function
getenv
src/tests/test-bpsys.cc:614
↓ 16 callers
Method
is_in
src/includes/dinit-util.h:38
↓ 16 callers
Function
load_service
Load a service: issue load command, wait for reply. Parameters: dinit_conn - details of the connection to dinit server process name - the name of the
src/dinitctl.cc:716
↓ 16 callers
Method
set_pid_file
src/includes/proc-service.h:822
↓ 16 callers
Function
value
src/includes/dinit-util.h:52
↓ 15 callers
Function
report_service_description_err
src/dinit-check.cc:558
↓ 15 callers
Method
reserve
dasynq/include/dasynq/svec.h:249
↓ 15 callers
Method
set_smooth_recovery
src/includes/service.h:588
↓ 14 callers
Method
add_watch
src/tests/test-includes/dinit.h:121
↓ 14 callers
Method
clear
src/dinit-iostream.cc:494
↓ 14 callers
Method
get_pid
src/includes/service.h:744
↓ 14 callers
Method
prep_output_file
Prepare an output file in the output directory: determine full path name, unlink any existing file
src/igr-tests/igr.h:373
↓ 14 callers
Function
read_value_resolved
src/includes/load-service.h:1438
↓ 13 callers
Method
get_exit_status
src/includes/service.h:749
↓ 13 callers
Method
sigmaskf
Alter the current thread signal mask using the correct function (sigprocmask or pthread_sigmask):
dasynq/include/dasynq/basewatchers.h:44
↓ 13 callers
Function
value_var_subst
src/includes/load-service.h:1208
↓ 12 callers
Method
add_prop_queue
Add a service record to the state propagation queue. The service record will have its do_propagation() method called when the queue is processed.
src/includes/service.h:1169
↓ 12 callers
Method
get_contiguous_length
src/includes/cpbuffer.h:46
↓ 12 callers
Method
substr
src/includes/dinit-util.h:1322
↓ 11 callers
Method
fill_to
fill by reading from the given fd, until at least the specified number of bytes are in the buffer. Return 0 if end-of-file reached before fill complet
src/includes/cpbuffer.h:91
↓ 11 callers
Function
kill
src/tests/test-bpsys.cc:572
↓ 10 callers
Function
log
Convenience methods which perform type conversion of the argument.
src/includes/dinit-log.h:86
↓ 10 callers
Method
push
Push a new input file TODO limit depth and/or prevent recursion
src/includes/file-input-stack.h:39
↓ 10 callers
Method
restart
src/service.cc:637
↓ 10 callers
Method
stop_service
Stop the specified service. Its active mark will be cleared.
src/includes/service.h:1045
↓ 10 callers
Function
supply_file_content
Supply a file content
src/tests/test-bpsys.cc:440
↓ 9 callers
Method
forced_stop
Mark this and all dependent services to be force-stopped.
src/service.cc:583
next →
1–100 of 1,514, ranked by callers