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: pps.h
/* * PPS API header * * Copyright (C) 2005-2009 Rodolfo Giometti <giometti@linux.it> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _PPS_H_ #define _PPS_H_ #include <linux/types.h> #define PPS_VERSION "5.3.6" #define PPS_MAX_SOURCES 16 /* should be enough... */ /* Implementation note: the logical states ``assert'' and ``clear'' * are implemented in terms of the chip register, i.e. ``assert'' * means the bit is set. */ /* * 3.2 New data structures */ #define PPS_API_VERS_1 1 #define PPS_API_VERS PPS_API_VERS_1 /* we use API version 1 */ #define PPS_MAX_NAME_LEN 32 /* 32-bit vs. 64-bit compatibility. * * 0n i386, the alignment of a uint64_t is only 4 bytes, while on most other * architectures it's 8 bytes. On i386, there will be no padding between the * two consecutive 'struct pps_ktime' members of struct pps_kinfo and struct * pps_kparams. But on most platforms there will be padding to ensure correct * alignment. * * The simple fix is probably to add an explicit padding. * [David Woodhouse] */ struct pps_ktime { __s64 sec; __s32 nsec; __u32 flags; }; #define PPS_TIME_INVALID (1<<0) /* used to specify timeout==NULL */ struct pps_kinfo { __u32 assert_sequence; /* seq. num. of assert event */ __u32 clear_sequence; /* seq. num. of clear event */ struct pps_ktime assert_tu; /* time of assert event */ struct pps_ktime clear_tu; /* time of clear event */ int current_mode; /* current mode bits */ }; struct pps_kparams { int api_version; /* API version # */ int mode; /* mode bits */ struct pps_ktime assert_off_tu; /* offset compensation for assert */ struct pps_ktime clear_off_tu; /* offset compensation for clear */ }; /* * 3.3 Mode bit definitions */ /* Device/implementation parameters */ #define PPS_CAPTUREASSERT 0x01 /* capture assert events */ #define PPS_CAPTURECLEAR 0x02 /* capture clear events */ #define PPS_CAPTUREBOTH 0x03 /* capture assert and clear events */ #define PPS_OFFSETASSERT 0x10 /* apply compensation for assert ev. */ #define PPS_OFFSETCLEAR 0x20 /* apply compensation for clear ev. */ #define PPS_CANWAIT 0x100 /* can we wait for an event? */ #define PPS_CANPOLL 0x200 /* bit reserved for future use */ /* Kernel actions */ #define PPS_ECHOASSERT 0x40 /* feed back assert event to output */ #define PPS_ECHOCLEAR 0x80 /* feed back clear event to output */ /* Timestamp formats */ #define PPS_TSFMT_TSPEC 0x1000 /* select timespec format */ #define PPS_TSFMT_NTPFP 0x2000 /* select NTP format */ /* * 3.4.4 New functions: disciplining the kernel timebase */ /* Kernel consumers */ #define PPS_KC_HARDPPS 0 /* hardpps() (or equivalent) */ #define PPS_KC_HARDPPS_PLL 1 /* hardpps() constrained to use a phase-locked loop */ #define PPS_KC_HARDPPS_FLL 2 /* hardpps() constrained to use a frequency-locked loop */ /* * Here begins the implementation-specific part! */ struct pps_fdata { struct pps_kinfo info; struct pps_ktime timeout; }; struct pps_bind_args { int tsformat; /* format of time stamps */ int edge; /* selected event type */ int consumer; /* selected kernel consumer */ }; #include <linux/ioctl.h> #define PPS_GETPARAMS _IOR('p', 0xa1, struct pps_kparams *) #define PPS_SETPARAMS _IOW('p', 0xa2, struct pps_kparams *) #define PPS_GETCAP _IOR('p', 0xa3, int *) #define PPS_FETCH _IOWR('p', 0xa4, struct pps_fdata *) #define PPS_KC_BIND _IOW('p', 0xa5, struct pps_bind_args *) #endif /* _PPS_H_ */
Save