SM0 She11
Path:
/
/
usr
/
include
/
linux
Full Path (server): /usr/include/linux
Create Fil3
Upl04d Fil3
📄 a.out.h
[E]
[D]
[R]
📄 acct.h
[E]
[D]
[R]
📄 adb.h
[E]
[D]
[R]
📄 adfs_fs.h
[E]
[D]
[R]
📄 affs_hardblocks.h
[E]
[D]
[R]
📄 agpgart.h
[E]
[D]
[R]
📄 aio_abi.h
[E]
[D]
[R]
📄 apm_bios.h
[E]
[D]
[R]
📄 arcfb.h
[E]
[D]
[R]
📄 atalk.h
[E]
[D]
[R]
📄 atm.h
[E]
[D]
[R]
📄 atm_eni.h
[E]
[D]
[R]
📄 atm_he.h
[E]
[D]
[R]
📄 atm_idt77105.h
[E]
[D]
[R]
📄 atm_nicstar.h
[E]
[D]
[R]
📄 atm_tcp.h
[E]
[D]
[R]
📄 atm_zatm.h
[E]
[D]
[R]
📄 atmapi.h
[E]
[D]
[R]
📄 atmarp.h
[E]
[D]
[R]
📄 atmbr2684.h
[E]
[D]
[R]
📄 atmclip.h
[E]
[D]
[R]
📄 atmdev.h
[E]
[D]
[R]
📄 atmioc.h
[E]
[D]
[R]
📄 atmlec.h
[E]
[D]
[R]
📄 atmmpc.h
[E]
[D]
[R]
📄 atmppp.h
[E]
[D]
[R]
📄 atmsap.h
[E]
[D]
[R]
📄 atmsvc.h
[E]
[D]
[R]
📄 audit.h
[E]
[D]
[R]
📄 auto_fs.h
[E]
[D]
[R]
📄 auto_fs4.h
[E]
[D]
[R]
📄 auxvec.h
[E]
[D]
[R]
📄 ax25.h
[E]
[D]
[R]
📄 b1lli.h
[E]
[D]
[R]
📄 baycom.h
[E]
[D]
[R]
📄 bfs_fs.h
[E]
[D]
[R]
📄 binfmts.h
[E]
[D]
[R]
📄 blkpg.h
[E]
[D]
[R]
📄 blktrace_api.h
[E]
[D]
[R]
📄 bpf.h
[E]
[D]
[R]
📄 bpf_common.h
[E]
[D]
[R]
📄 bpf_perf_event.h
[E]
[D]
[R]
📄 bpqether.h
[E]
[D]
[R]
📄 bsg.h
[E]
[D]
[R]
📄 bt-bmc.h
[E]
[D]
[R]
📄 btrfs.h
[E]
[D]
[R]
📁 byteorder
Open
[D]
[R]
📁 caif
Open
[D]
[R]
📁 can
Open
[D]
[R]
📄 can.h
[E]
[D]
[R]
📄 capability.h
[E]
[D]
[R]
📄 capi.h
[E]
[D]
[R]
📄 cciss_defs.h
[E]
[D]
[R]
📄 cciss_ioctl.h
[E]
[D]
[R]
📄 cdrom.h
[E]
[D]
[R]
📄 cgroupstats.h
[E]
[D]
[R]
📄 chio.h
[E]
[D]
[R]
📄 cm4000_cs.h
[E]
[D]
[R]
📄 cn_proc.h
[E]
[D]
[R]
📄 coda.h
[E]
[D]
[R]
📄 coda_psdev.h
[E]
[D]
[R]
📄 coff.h
[E]
[D]
[R]
📄 connector.h
[E]
[D]
[R]
📄 const.h
[E]
[D]
[R]
📄 cramfs_fs.h
[E]
[D]
[R]
📄 cuda.h
[E]
[D]
[R]
📄 cyclades.h
[E]
[D]
[R]
📄 cycx_cfm.h
[E]
[D]
[R]
📄 dcbnl.h
[E]
[D]
[R]
📄 dccp.h
[E]
[D]
[R]
📄 devlink.h
[E]
[D]
[R]
📄 dlm.h
[E]
[D]
[R]
📄 dlm_device.h
[E]
[D]
[R]
📄 dlm_netlink.h
[E]
[D]
[R]
📄 dlm_plock.h
[E]
[D]
[R]
📄 dlmconstants.h
[E]
[D]
[R]
📄 dm-ioctl.h
[E]
[D]
[R]
📄 dm-log-userspace.h
[E]
[D]
[R]
📄 dn.h
[E]
[D]
[R]
📄 dqblk_xfs.h
[E]
[D]
[R]
📁 dvb
Open
[D]
[R]
📄 edd.h
[E]
[D]
[R]
📄 efs_fs_sb.h
[E]
[D]
[R]
📄 elf-em.h
[E]
[D]
[R]
📄 elf-fdpic.h
[E]
[D]
[R]
📄 elf.h
[E]
[D]
[R]
📄 elfcore.h
[E]
[D]
[R]
📄 errno.h
[E]
[D]
[R]
📄 errqueue.h
[E]
[D]
[R]
📄 ethtool.h
[E]
[D]
[R]
📄 eventpoll.h
[E]
[D]
[R]
📄 fadvise.h
[E]
[D]
[R]
📄 falloc.h
[E]
[D]
[R]
📄 fanotify.h
[E]
[D]
[R]
📄 fb.h
[E]
[D]
[R]
📄 fcntl.h
[E]
[D]
[R]
📄 fd.h
[E]
[D]
[R]
📄 fdreg.h
[E]
[D]
[R]
📄 fib_rules.h
[E]
[D]
[R]
📄 fiemap.h
[E]
[D]
[R]
📄 filter.h
[E]
[D]
[R]
📄 firewire-cdev.h
[E]
[D]
[R]
📄 firewire-constants.h
[E]
[D]
[R]
📄 flat.h
[E]
[D]
[R]
📄 fou.h
[E]
[D]
[R]
📄 fs.h
[E]
[D]
[R]
📄 fsl_hypervisor.h
[E]
[D]
[R]
📄 fuse.h
[E]
[D]
[R]
📄 futex.h
[E]
[D]
[R]
📄 gameport.h
[E]
[D]
[R]
📄 gen_stats.h
[E]
[D]
[R]
📄 genetlink.h
[E]
[D]
[R]
📄 gfs2_ondisk.h
[E]
[D]
[R]
📄 gigaset_dev.h
[E]
[D]
[R]
📁 hdlc
Open
[D]
[R]
📄 hdlc.h
[E]
[D]
[R]
📄 hdlcdrv.h
[E]
[D]
[R]
📄 hdreg.h
[E]
[D]
[R]
📄 hid.h
[E]
[D]
[R]
📄 hiddev.h
[E]
[D]
[R]
📄 hidraw.h
[E]
[D]
[R]
📄 hpet.h
[E]
[D]
[R]
📁 hsi
Open
[D]
[R]
📄 hw_breakpoint.h
[E]
[D]
[R]
📄 hyperv.h
[E]
[D]
[R]
📄 hysdn_if.h
[E]
[D]
[R]
📄 i2c-dev.h
[E]
[D]
[R]
📄 i2c.h
[E]
[D]
[R]
📄 i2o-dev.h
[E]
[D]
[R]
📄 i8k.h
[E]
[D]
[R]
📄 icmp.h
[E]
[D]
[R]
📄 icmpv6.h
[E]
[D]
[R]
📄 if.h
[E]
[D]
[R]
📄 if_addr.h
[E]
[D]
[R]
📄 if_addrlabel.h
[E]
[D]
[R]
📄 if_alg.h
[E]
[D]
[R]
📄 if_arcnet.h
[E]
[D]
[R]
📄 if_arp.h
[E]
[D]
[R]
📄 if_bonding.h
[E]
[D]
[R]
📄 if_bridge.h
[E]
[D]
[R]
📄 if_cablemodem.h
[E]
[D]
[R]
📄 if_eql.h
[E]
[D]
[R]
📄 if_ether.h
[E]
[D]
[R]
📄 if_fc.h
[E]
[D]
[R]
📄 if_fddi.h
[E]
[D]
[R]
📄 if_frad.h
[E]
[D]
[R]
📄 if_hippi.h
[E]
[D]
[R]
📄 if_infiniband.h
[E]
[D]
[R]
📄 if_link.h
[E]
[D]
[R]
📄 if_ltalk.h
[E]
[D]
[R]
📄 if_macsec.h
[E]
[D]
[R]
📄 if_packet.h
[E]
[D]
[R]
📄 if_phonet.h
[E]
[D]
[R]
📄 if_plip.h
[E]
[D]
[R]
📄 if_ppp.h
[E]
[D]
[R]
📄 if_pppol2tp.h
[E]
[D]
[R]
📄 if_pppox.h
[E]
[D]
[R]
📄 if_slip.h
[E]
[D]
[R]
📄 if_team.h
[E]
[D]
[R]
📄 if_tun.h
[E]
[D]
[R]
📄 if_tunnel.h
[E]
[D]
[R]
📄 if_vlan.h
[E]
[D]
[R]
📄 if_x25.h
[E]
[D]
[R]
📄 ife.h
[E]
[D]
[R]
📄 igmp.h
[E]
[D]
[R]
📁 iio
Open
[D]
[R]
📄 in.h
[E]
[D]
[R]
📄 in6.h
[E]
[D]
[R]
📄 in_route.h
[E]
[D]
[R]
📄 inet_diag.h
[E]
[D]
[R]
📄 inotify.h
[E]
[D]
[R]
📄 input.h
[E]
[D]
[R]
📄 ioctl.h
[E]
[D]
[R]
📄 ip.h
[E]
[D]
[R]
📄 ip6_tunnel.h
[E]
[D]
[R]
📄 ip_vs.h
[E]
[D]
[R]
📄 ipc.h
[E]
[D]
[R]
📄 ipmi.h
[E]
[D]
[R]
📄 ipmi_msgdefs.h
[E]
[D]
[R]
📄 ipsec.h
[E]
[D]
[R]
📄 ipv6.h
[E]
[D]
[R]
📄 ipv6_route.h
[E]
[D]
[R]
📄 ipx.h
[E]
[D]
[R]
📄 irda.h
[E]
[D]
[R]
📄 irqnr.h
[E]
[D]
[R]
📁 isdn
Open
[D]
[R]
📄 isdn.h
[E]
[D]
[R]
📄 isdn_divertif.h
[E]
[D]
[R]
📄 isdn_ppp.h
[E]
[D]
[R]
📄 isdnif.h
[E]
[D]
[R]
📄 iso_fs.h
[E]
[D]
[R]
📄 ivtv.h
[E]
[D]
[R]
📄 ivtvfb.h
[E]
[D]
[R]
📄 ixjuser.h
[E]
[D]
[R]
📄 jffs2.h
[E]
[D]
[R]
📄 joystick.h
[E]
[D]
[R]
📄 kd.h
[E]
[D]
[R]
📄 kdev_t.h
[E]
[D]
[R]
📄 kernel-page-flags.h
[E]
[D]
[R]
📄 kernel.h
[E]
[D]
[R]
📄 kernelcapi.h
[E]
[D]
[R]
📄 kexec.h
[E]
[D]
[R]
📄 keyboard.h
[E]
[D]
[R]
📄 keyctl.h
[E]
[D]
[R]
📄 kvm.h
[E]
[D]
[R]
📄 kvm_para.h
[E]
[D]
[R]
📄 l2tp.h
[E]
[D]
[R]
📄 libc-compat.h
[E]
[D]
[R]
📄 limits.h
[E]
[D]
[R]
📄 llc.h
[E]
[D]
[R]
📄 loop.h
[E]
[D]
[R]
📄 lp.h
[E]
[D]
[R]
📄 lwtunnel.h
[E]
[D]
[R]
📄 magic.h
[E]
[D]
[R]
📄 major.h
[E]
[D]
[R]
📄 map_to_7segment.h
[E]
[D]
[R]
📄 matroxfb.h
[E]
[D]
[R]
📄 mdio.h
[E]
[D]
[R]
📄 media.h
[E]
[D]
[R]
📄 mei.h
[E]
[D]
[R]
📄 membarrier.h
[E]
[D]
[R]
📄 memfd.h
[E]
[D]
[R]
📄 mempolicy.h
[E]
[D]
[R]
📄 meye.h
[E]
[D]
[R]
📄 mii.h
[E]
[D]
[R]
📄 minix_fs.h
[E]
[D]
[R]
📄 mman.h
[E]
[D]
[R]
📁 mmc
Open
[D]
[R]
📄 mmtimer.h
[E]
[D]
[R]
📄 mpls.h
[E]
[D]
[R]
📄 mqueue.h
[E]
[D]
[R]
📄 mroute.h
[E]
[D]
[R]
📄 mroute6.h
[E]
[D]
[R]
📄 msdos_fs.h
[E]
[D]
[R]
📄 msg.h
[E]
[D]
[R]
📄 mtio.h
[E]
[D]
[R]
📄 n_r3964.h
[E]
[D]
[R]
📄 nbd.h
[E]
[D]
[R]
📄 ncp.h
[E]
[D]
[R]
📄 ncp_fs.h
[E]
[D]
[R]
📄 ncp_mount.h
[E]
[D]
[R]
📄 ncp_no.h
[E]
[D]
[R]
📄 ndctl.h
[E]
[D]
[R]
📄 neighbour.h
[E]
[D]
[R]
📄 net.h
[E]
[D]
[R]
📄 net_dropmon.h
[E]
[D]
[R]
📄 net_namespace.h
[E]
[D]
[R]
📄 net_tstamp.h
[E]
[D]
[R]
📄 netconf.h
[E]
[D]
[R]
📄 netdevice.h
[E]
[D]
[R]
📁 netfilter
Open
[D]
[R]
📄 netfilter.h
[E]
[D]
[R]
📁 netfilter_arp
Open
[D]
[R]
📄 netfilter_arp.h
[E]
[D]
[R]
📁 netfilter_bridge
Open
[D]
[R]
📄 netfilter_bridge.h
[E]
[D]
[R]
📄 netfilter_decnet.h
[E]
[D]
[R]
📁 netfilter_ipv4
Open
[D]
[R]
📄 netfilter_ipv4.h
[E]
[D]
[R]
📁 netfilter_ipv6
Open
[D]
[R]
📄 netfilter_ipv6.h
[E]
[D]
[R]
📄 netlink.h
[E]
[D]
[R]
📄 netlink_diag.h
[E]
[D]
[R]
📄 netrom.h
[E]
[D]
[R]
📄 nfc.h
[E]
[D]
[R]
📄 nfs.h
[E]
[D]
[R]
📄 nfs2.h
[E]
[D]
[R]
📄 nfs3.h
[E]
[D]
[R]
📄 nfs4.h
[E]
[D]
[R]
📄 nfs4_mount.h
[E]
[D]
[R]
📄 nfs_fs.h
[E]
[D]
[R]
📄 nfs_idmap.h
[E]
[D]
[R]
📄 nfs_mount.h
[E]
[D]
[R]
📄 nfsacl.h
[E]
[D]
[R]
📁 nfsd
Open
[D]
[R]
📄 nl80211.h
[E]
[D]
[R]
📄 nubus.h
[E]
[D]
[R]
📄 nvme_ioctl.h
[E]
[D]
[R]
📄 nvram.h
[E]
[D]
[R]
📄 omap3isp.h
[E]
[D]
[R]
📄 omapfb.h
[E]
[D]
[R]
📄 oom.h
[E]
[D]
[R]
📄 openvswitch.h
[E]
[D]
[R]
📄 packet_diag.h
[E]
[D]
[R]
📄 param.h
[E]
[D]
[R]
📄 parport.h
[E]
[D]
[R]
📄 patchkey.h
[E]
[D]
[R]
📄 pci.h
[E]
[D]
[R]
📄 pci_regs.h
[E]
[D]
[R]
📄 perf_event.h
[E]
[D]
[R]
📄 personality.h
[E]
[D]
[R]
📄 pfkeyv2.h
[E]
[D]
[R]
📄 pg.h
[E]
[D]
[R]
📄 phantom.h
[E]
[D]
[R]
📄 phonet.h
[E]
[D]
[R]
📄 pkt_cls.h
[E]
[D]
[R]
📄 pkt_sched.h
[E]
[D]
[R]
📄 pktcdvd.h
[E]
[D]
[R]
📄 pmu.h
[E]
[D]
[R]
📄 poll.h
[E]
[D]
[R]
📄 posix_types.h
[E]
[D]
[R]
📄 ppdev.h
[E]
[D]
[R]
📄 ppp-comp.h
[E]
[D]
[R]
📄 ppp-ioctl.h
[E]
[D]
[R]
📄 ppp_defs.h
[E]
[D]
[R]
📄 pps.h
[E]
[D]
[R]
📄 prctl.h
[E]
[D]
[R]
📄 psample.h
[E]
[D]
[R]
📄 ptp_clock.h
[E]
[D]
[R]
📄 ptrace.h
[E]
[D]
[R]
📄 qnx4_fs.h
[E]
[D]
[R]
📄 qnxtypes.h
[E]
[D]
[R]
📄 quota.h
[E]
[D]
[R]
📄 radeonfb.h
[E]
[D]
[R]
📁 raid
Open
[D]
[R]
📄 random.h
[E]
[D]
[R]
📄 raw.h
[E]
[D]
[R]
📄 rds.h
[E]
[D]
[R]
📄 reboot.h
[E]
[D]
[R]
📄 reiserfs_fs.h
[E]
[D]
[R]
📄 reiserfs_xattr.h
[E]
[D]
[R]
📄 resource.h
[E]
[D]
[R]
📄 rfkill.h
[E]
[D]
[R]
📄 romfs_fs.h
[E]
[D]
[R]
📄 rose.h
[E]
[D]
[R]
📄 route.h
[E]
[D]
[R]
📄 rtc.h
[E]
[D]
[R]
📄 rtnetlink.h
[E]
[D]
[R]
📄 scc.h
[E]
[D]
[R]
📄 sched.h
[E]
[D]
[R]
📄 screen_info.h
[E]
[D]
[R]
📄 sctp.h
[E]
[D]
[R]
📄 sdla.h
[E]
[D]
[R]
📄 seccomp.h
[E]
[D]
[R]
📄 securebits.h
[E]
[D]
[R]
📄 selinux_netlink.h
[E]
[D]
[R]
📄 sem.h
[E]
[D]
[R]
📄 serial.h
[E]
[D]
[R]
📄 serial_core.h
[E]
[D]
[R]
📄 serial_reg.h
[E]
[D]
[R]
📄 serio.h
[E]
[D]
[R]
📄 shm.h
[E]
[D]
[R]
📄 signal.h
[E]
[D]
[R]
📄 signalfd.h
[E]
[D]
[R]
📄 snmp.h
[E]
[D]
[R]
📄 sock_diag.h
[E]
[D]
[R]
📄 socket.h
[E]
[D]
[R]
📄 sockios.h
[E]
[D]
[R]
📄 som.h
[E]
[D]
[R]
📄 sonet.h
[E]
[D]
[R]
📄 sonypi.h
[E]
[D]
[R]
📄 sound.h
[E]
[D]
[R]
📄 soundcard.h
[E]
[D]
[R]
📁 spi
Open
[D]
[R]
📄 stat.h
[E]
[D]
[R]
📄 stddef.h
[E]
[D]
[R]
📄 string.h
[E]
[D]
[R]
📁 sunrpc
Open
[D]
[R]
📄 suspend_ioctls.h
[E]
[D]
[R]
📄 swab.h
[E]
[D]
[R]
📄 synclink.h
[E]
[D]
[R]
📄 sysctl.h
[E]
[D]
[R]
📄 sysinfo.h
[E]
[D]
[R]
📄 target_core_user.h
[E]
[D]
[R]
📄 taskstats.h
[E]
[D]
[R]
📁 tc_act
Open
[D]
[R]
📁 tc_ematch
Open
[D]
[R]
📄 tcp.h
[E]
[D]
[R]
📄 tcp_metrics.h
[E]
[D]
[R]
📄 telephony.h
[E]
[D]
[R]
📄 termios.h
[E]
[D]
[R]
📄 time.h
[E]
[D]
[R]
📄 times.h
[E]
[D]
[R]
📄 timex.h
[E]
[D]
[R]
📄 tiocl.h
[E]
[D]
[R]
📄 tipc.h
[E]
[D]
[R]
📄 tipc_config.h
[E]
[D]
[R]
📄 toshiba.h
[E]
[D]
[R]
📄 tty.h
[E]
[D]
[R]
📄 tty_flags.h
[E]
[D]
[R]
📄 types.h
[E]
[D]
[R]
📄 udf_fs_i.h
[E]
[D]
[R]
📄 udp.h
[E]
[D]
[R]
📄 uhid.h
[E]
[D]
[R]
📄 uinput.h
[E]
[D]
[R]
📄 uio.h
[E]
[D]
[R]
📄 ultrasound.h
[E]
[D]
[R]
📄 un.h
[E]
[D]
[R]
📄 unistd.h
[E]
[D]
[R]
📄 unix_diag.h
[E]
[D]
[R]
📁 usb
Open
[D]
[R]
📄 usbdevice_fs.h
[E]
[D]
[R]
📄 userfaultfd.h
[E]
[D]
[R]
📄 utime.h
[E]
[D]
[R]
📄 utsname.h
[E]
[D]
[R]
📄 uuid.h
[E]
[D]
[R]
📄 uvcvideo.h
[E]
[D]
[R]
📄 v4l2-common.h
[E]
[D]
[R]
📄 v4l2-controls.h
[E]
[D]
[R]
📄 v4l2-dv-timings.h
[E]
[D]
[R]
📄 v4l2-mediabus.h
[E]
[D]
[R]
📄 v4l2-subdev.h
[E]
[D]
[R]
📄 version.h
[E]
[D]
[R]
📄 veth.h
[E]
[D]
[R]
📄 vfio.h
[E]
[D]
[R]
📄 vhost.h
[E]
[D]
[R]
📄 videodev2.h
[E]
[D]
[R]
📄 virtio_9p.h
[E]
[D]
[R]
📄 virtio_balloon.h
[E]
[D]
[R]
📄 virtio_blk.h
[E]
[D]
[R]
📄 virtio_config.h
[E]
[D]
[R]
📄 virtio_console.h
[E]
[D]
[R]
📄 virtio_gpu.h
[E]
[D]
[R]
📄 virtio_ids.h
[E]
[D]
[R]
📄 virtio_input.h
[E]
[D]
[R]
📄 virtio_net.h
[E]
[D]
[R]
📄 virtio_pci.h
[E]
[D]
[R]
📄 virtio_ring.h
[E]
[D]
[R]
📄 virtio_rng.h
[E]
[D]
[R]
📄 virtio_scsi.h
[E]
[D]
[R]
📄 virtio_types.h
[E]
[D]
[R]
📄 virtio_vsock.h
[E]
[D]
[R]
📄 vm_sockets.h
[E]
[D]
[R]
📄 vsockmon.h
[E]
[D]
[R]
📄 vt.h
[E]
[D]
[R]
📄 vtpm_proxy.h
[E]
[D]
[R]
📄 wait.h
[E]
[D]
[R]
📄 wanrouter.h
[E]
[D]
[R]
📄 watchdog.h
[E]
[D]
[R]
📁 wimax
Open
[D]
[R]
📄 wimax.h
[E]
[D]
[R]
📄 wireless.h
[E]
[D]
[R]
📄 wmi.h
[E]
[D]
[R]
📄 x25.h
[E]
[D]
[R]
📄 xattr.h
[E]
[D]
[R]
📄 xfrm.h
[E]
[D]
[R]
Editing: timex.h
/***************************************************************************** * * * Copyright (c) David L. Mills 1993 * * * * Permission to use, copy, modify, and distribute this software and its * * documentation for any purpose and without fee is hereby granted, provided * * that the above copyright notice appears in all copies and that both the * * copyright notice and this permission notice appear in supporting * * documentation, and that the name University of Delaware not be used in * * advertising or publicity pertaining to distribution of the software * * without specific, written prior permission. The University of Delaware * * makes no representations about the suitability this software for any * * purpose. It is provided "as is" without express or implied warranty. * * * *****************************************************************************/ /* * Modification history timex.h * * 29 Dec 97 Russell King * Moved CLOCK_TICK_RATE, CLOCK_TICK_FACTOR and FINETUNE to asm/timex.h * for ARM machines * * 9 Jan 97 Adrian Sun * Shifted LATCH define to allow access to alpha machines. * * 26 Sep 94 David L. Mills * Added defines for hybrid phase/frequency-lock loop. * * 19 Mar 94 David L. Mills * Moved defines from kernel routines to header file and added new * defines for PPS phase-lock loop. * * 20 Feb 94 David L. Mills * Revised status codes and structures for external clock and PPS * signal discipline. * * 28 Nov 93 David L. Mills * Adjusted parameters to improve stability and increase poll * interval. * * 17 Sep 93 David L. Mills * Created file $NTP/include/sys/timex.h * 07 Oct 93 Torsten Duwe * Derived linux/timex.h * 1995-08-13 Torsten Duwe * kernel PLL updated to 1994-12-13 specs (rfc-1589) * 1997-08-30 Ulrich Windl * Added new constant NTP_PHASE_LIMIT * 2004-08-12 Christoph Lameter * Reworked time interpolation logic */ #ifndef _LINUX_TIMEX_H #define _LINUX_TIMEX_H #include <linux/time.h> #define NTP_API 4 /* NTP API version */ /* * syscall interface - used (mainly by NTP daemon) * to discipline kernel clock oscillator */ struct timex { unsigned int modes; /* mode selector */ long offset; /* time offset (usec) */ long freq; /* frequency offset (scaled ppm) */ long maxerror; /* maximum error (usec) */ long esterror; /* estimated error (usec) */ int status; /* clock command/status */ long constant; /* pll time constant */ long precision; /* clock precision (usec) (read only) */ long tolerance; /* clock frequency tolerance (ppm) * (read only) */ struct timeval time; /* (read only, except for ADJ_SETOFFSET) */ long tick; /* (modified) usecs between clock ticks */ long ppsfreq; /* pps frequency (scaled ppm) (ro) */ long jitter; /* pps jitter (us) (ro) */ int shift; /* interval duration (s) (shift) (ro) */ long stabil; /* pps stability (scaled ppm) (ro) */ long jitcnt; /* jitter limit exceeded (ro) */ long calcnt; /* calibration intervals (ro) */ long errcnt; /* calibration errors (ro) */ long stbcnt; /* stability limit exceeded (ro) */ int tai; /* TAI offset (ro) */ int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; }; /* * Mode codes (timex.mode) */ #define ADJ_OFFSET 0x0001 /* time offset */ #define ADJ_FREQUENCY 0x0002 /* frequency offset */ #define ADJ_MAXERROR 0x0004 /* maximum time error */ #define ADJ_ESTERROR 0x0008 /* estimated time error */ #define ADJ_STATUS 0x0010 /* clock status */ #define ADJ_TIMECONST 0x0020 /* pll time constant */ #define ADJ_TAI 0x0080 /* set TAI offset */ #define ADJ_SETOFFSET 0x0100 /* add 'time' to current time */ #define ADJ_MICRO 0x1000 /* select microsecond resolution */ #define ADJ_NANO 0x2000 /* select nanosecond resolution */ #define ADJ_TICK 0x4000 /* tick value */ #define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */ #define ADJ_OFFSET_SS_READ 0xa001 /* read-only adjtime */ /* NTP userland likes the MOD_ prefix better */ #define MOD_OFFSET ADJ_OFFSET #define MOD_FREQUENCY ADJ_FREQUENCY #define MOD_MAXERROR ADJ_MAXERROR #define MOD_ESTERROR ADJ_ESTERROR #define MOD_STATUS ADJ_STATUS #define MOD_TIMECONST ADJ_TIMECONST #define MOD_TAI ADJ_TAI #define MOD_MICRO ADJ_MICRO #define MOD_NANO ADJ_NANO /* * Status codes (timex.status) */ #define STA_PLL 0x0001 /* enable PLL updates (rw) */ #define STA_PPSFREQ 0x0002 /* enable PPS freq discipline (rw) */ #define STA_PPSTIME 0x0004 /* enable PPS time discipline (rw) */ #define STA_FLL 0x0008 /* select frequency-lock mode (rw) */ #define STA_INS 0x0010 /* insert leap (rw) */ #define STA_DEL 0x0020 /* delete leap (rw) */ #define STA_UNSYNC 0x0040 /* clock unsynchronized (rw) */ #define STA_FREQHOLD 0x0080 /* hold frequency (rw) */ #define STA_PPSSIGNAL 0x0100 /* PPS signal present (ro) */ #define STA_PPSJITTER 0x0200 /* PPS signal jitter exceeded (ro) */ #define STA_PPSWANDER 0x0400 /* PPS signal wander exceeded (ro) */ #define STA_PPSERROR 0x0800 /* PPS signal calibration error (ro) */ #define STA_CLOCKERR 0x1000 /* clock hardware fault (ro) */ #define STA_NANO 0x2000 /* resolution (0 = us, 1 = ns) (ro) */ #define STA_MODE 0x4000 /* mode (0 = PLL, 1 = FLL) (ro) */ #define STA_CLK 0x8000 /* clock source (0 = A, 1 = B) (ro) */ /* read-only bits */ #define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \ STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK) /* * Clock states (time_state) */ #define TIME_OK 0 /* clock synchronized, no leap second */ #define TIME_INS 1 /* insert leap second */ #define TIME_DEL 2 /* delete leap second */ #define TIME_OOP 3 /* leap second in progress */ #define TIME_WAIT 4 /* leap second has occurred */ #define TIME_ERROR 5 /* clock not synchronized */ #define TIME_BAD TIME_ERROR /* bw compat */ #endif /* _LINUX_TIMEX_H */
Save